パラメータ
prompt必須タイプ
text
値
text description
デフォルト
required
価格
—
HappyHorse 1.1 — 一時的に利用できません。
happyhorse-1.1:whiteHappyHorse 1.1 — 一時的に利用できません。
生成は非同期で実行されます。ジョブを作成し、完了するまでステータスをポーリングします。
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":"happyhorse-1.1:white","prompt":"a beautiful landscape","opts":{"input":"text-to-video","duration":"5","resolution":"720P"}}'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": "happyhorse-1.1:white",
"prompt": "a beautiful landscape",
"opts": {
"input": "text-to-video",
"duration": "5",
"resolution": "720P"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);GetVibe API経由でHappyhorse 1.1にリクエストする際のパラメータ。
prompt必須image_urlvideo_urlinputdurationresolutionimage_file_idimage_base64video_file_idvideo_base64| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
prompt必須 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
video_url | URL | Public video URL | — | — |
input | option selection | Text → video (default) · Image → video · Reference → video | テキスト → 動画 | Included in the base price |
duration | option selection | 5 (default) · 10 | 5 | Included in the base price |
resolution | option selection | 720P (default) · 1080P | 720P | 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 |
video_file_id | text | Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
video_base64 | text | Alternative to video_url: the file inline, as base64 or a data: URI | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
Happyhorse 1.1の価格を確認中です。この契約について、プロバイダーは初回確定価格をまだ公開していません。価格が確定すると生成を利用できるようになります。
Happyhorse 1.1の機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Happyhorse 1.1
公開モデル: happyhorse-1.1:white
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `prompt` (text): text description; デフォルト: required
- `image_url` (URL): Public image URL; デフォルト: —
- `video_url` (URL): Public video URL; デフォルト: —
- `input` (option selection): Text → video (default) · Image → video · Reference → video; デフォルト: Text → video
- `duration` (option selection): 5 (default) · 10; デフォルト: 5
- `resolution` (option selection): 720P (default) · 1080P; デフォルト: 720P
- `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; デフォルト: —
- `video_file_id` (text): Alternative to video_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `video_base64` (text): Alternative to video_url: the file inline, as base64 or a data: URI; デフォルト: —
## 公開バリアント
- `happyhorse-1.1:white`: デフォルトHappyhorse 1.1の料金はリクエスト時です。料金は現在の為替レートに基づいて動的に計算されます。
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。