krea-2デフォルトKrea 2 API — 接続と支払いの方法
Krea 2 — Kreaのフォトリアルな画像モデル。スタイル制御に対応。3つのティア:Turbo(最速かつ最安)、Medium、Large(フラッグシップで、フォトリアリズムに最も強い)。画像単位の一律料金で、アスペクト比による料金の変動はありません。
チャネル比較
過去7日間
| チャネル | 価格 |
|---|---|
Flow krea-2デフォルト | $0.02から per image |
必要な結果を作成
krea-2Krea 2とは
Krea 2 — Kreaのフォトリアルな画像モデル。スタイル制御に対応。3つのティア:Turbo(最速かつ最安)、Medium、Large(フラッグシップで、フォトリアリズムに最も強い)。画像単位の一律料金で、アスペクト比による料金の変動はありません。
契約の概要
- 入力
- text, image
- 出力
- image
- モード
- 非同期(ジョブ + ポーリング)
- ステータスのポーリング
- 3秒ごと · 最大90秒
強み
- 料金:画像単位
- 入力:テキスト、画像
- 設定可能なオプション:3
- メディア生成に1つのAPIキー
用途
- 記事やソーシャルメディア用のイラスト
- 商品画像
- バナーやカバー
- デザインのプロトタイプ
APIコントラクト
生成は非同期で実行されます。ジョブを作成し、完了するまでステータスをポーリングします。
- ジョブを作成
- POST /api/media/generate
- ステータスを確認
- GET /api/media/jobs/{jobId}
- 入力
- text, image
- 出力
- image
- ポーリング
- 3秒ごと · 最大90秒
- 認証
- Authorization: Bearer sk-pv-…
リクエスト例
Bearerヘッダーにキーを渡します。APIはjobIdステータスをポーリングするために使用します。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"krea-2","prompt":"a beautiful landscape","opts":{"tier":"turbo","style_reference":"none","aspect_ratio":"1:1","creativity":"medium"}}'JavaScript
const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "krea-2",
"prompt": "a beautiful landscape",
"opts": {
"tier": "turbo",
"style_reference": "none",
"aspect_ratio": "1:1",
"creativity": "medium"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);APIリクエストパラメータ
GetVibe API経由でKrea 2にリクエストする際のパラメータ。
prompt必須image_urltierstyle_referenceaspect_ratiocreativityseedimage_file_idimage_base64| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
prompt必須 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
tier | option selection | Turbo (default) · Medium · Large | Turbo | Turbo: $0.02, Medium: $0.04, Large: $0.08 |
style_reference | option selection | No reference (default) · From a reference image | 参照なし | No reference: $0.02, From a reference image: $0.023333 |
aspect_ratio | option selection | 1:1 (default) · 4:3 · 3:2 · 16:9 · 2.35:1 · 4:5 · 2:3 · 9:16 | 1:1 | Included in the base price |
creativity | option selection | Raw · Low · Medium (default) · High | Medium | Included in the base price |
seed | text / number | any value | — | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
Krea 2の価格
Krea 2の料金: から $0.02 per image。価格は現在の為替レートに基づいて動的に計算され、最終的な請求額はAPIレスポンス(priceRub)に表示されます。支払いはUSDで、サブスクリプションはありません。
デフォルトのリクエストにかかる料金
パラメーターを指定しない場合、リクエストには次の値が使用されます: Version and quality — Turbo, Style reference — No reference, Frame format — 1:1, Prompt interpretation freedom — Medium。 このリクエストの料金は$0.02です。
すべてのパラメータの組み合わせにおけるチャンネルと価格
各チャンネルについて、すべてのパラメータの組み合わせの価格を表示しています。これは正常に生成された場合に請求される正確な金額であり、下にリンクされた機械可読テーブルと同じ数値です。
Flowkrea-2$0.02から正確な価格
| 階層 \ スタイル参照 | 参照なし | 参照画像から |
|---|---|---|
| Turbo | $0.02 | $0.023333 |
| Medium | $0.04 | $0.046667 |
| Large | $0.08 | $0.086667 |
すべての組み合わせ(JSON): /api/media/price-table?model=krea-2
README
Krea 2の機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Krea 2
公開モデル: krea-2
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `prompt` (text): text description; デフォルト: required
- `image_url` (URL): Public image URL; デフォルト: —
- `tier` (option selection): Turbo (default) · Medium · Large; デフォルト: Turbo
- `style_reference` (option selection): No reference (default) · From a reference image; デフォルト: No reference
- `aspect_ratio` (option selection): 1:1 (default) · 4:3 · 3:2 · 16:9 · 2.35:1 · 4:5 · 2:3 · 9:16; デフォルト: 1:1
- `creativity` (option selection): Raw · Low · Medium (default) · High; デフォルト: Medium
- `seed` (text / number): any value; デフォルト: —
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; デフォルト: —
## 公開バリアント
- `krea-2`: FlowKrea 2 APIに関するよくある質問
Krea 2の料金はいくらですか?
Krea 2の料金はから $0.02 per imageです。料金は現在の為替レートに基づいて動的に計算されます。
OpenAI SDKと互換性がありますか?
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。