請求建構工具

使用此互動工具建立 OpenRouter API 請求。選擇模型、設定訊息、參數和供應商偏好設定,然後以您偏好的語言產生程式碼。

模型選擇

選擇一或多個模型,其他模型將用作備援。

訊息

啟用後,API 會在 token 產生時以串流方式傳回。

請求功能

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
        {
            "role": "user",
            "content": "If you built the world'\''s tallest skyscraper, what would you name it?"
        }
    ]
}'