메인 콘텐츠로 건너뛰기
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.