メインコンテンツへスキップ
POST
/
v1beta
/
models
/
{model_path}
curl --request POST \
  --url https://api.orcarouter.ai/v1beta/models/{model_path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Write a one-sentence haiku about the sea."
        }
      ]
    }
  ]
}
'
{}

承認

Authorization
string
header
必須

OrcaRouter API キーは sk-orca-... のような形式です。 Authorization: Bearer sk-orca-... ヘッダで渡してください。

パスパラメータ

model_path
string
必須

ボディ

application/json

Gemini ネイティブリクエストボディ (Google の GenerateContentRequest 形)。一般的なペイロードは examples を参照。

レスポンス

成功レスポンス。:generateContent ではボディは JSON (GenerateContentResponse)。:streamGenerateContent では ボディは SSE (text/event-stream); 各イベントは部分的な GenerateContentResponse

Gemini ネイティブ GenerateContentResponse