Felo API PlatformFelo API Platform
v0.3.0
OpenAPI 3.1.0

Create a Claude message

サーバー:https://openapi.felo.ai
クライアントライブラリ

Create a Claude message

​

Claude Messages API-compatible endpoint. Set stream=true to receive Claude-style message stream events. Request, response, and validation-error fields follow the Claude Messages protocol; the Router may also return a sanitized gateway error envelope for infrastructure failures.

リクエストボディ·ClaudeMessagesRequest
必須
application/json
  • max_tokens
    型: integer
    最小値:  
    1
    必須

    Integer numbers.

  • messages
    型: array object[] · ClaudeMessage[] 1…
    必須
    • content
      必須
      • 型: string
    • role
      型: string 列挙値
      必須
      値
      • user
      • assistant
    • propertyName
      型: anything
  • model
    型: string
    必須
  • metadata
    型: object
    • propertyName
      型: anything
  • service_tier
    型: string
  • stop_sequences
    型: array string[]
  • stream
    型: boolean
  • system
    • 型: string
  • temperature
    型: number
    最小値:  
    0
    最大値:  
    1
  • thinking
    型: object
    • propertyName
      型: anything
  • tool_choice
    • 型: string
  • tools
    型: array object[]
    • propertyName
      型: anything
  • propertyName
    型: anything
  • top_k
    型: integer
    最小値:  
    0

    Integer numbers.

  • top_p
    型: number
    最小値:  
    0
    最大値:  
    1
  • propertyName
    型: anything
レスポンス
  • 200
    型: object · ClaudeMessageResponse

    Claude message or streaming response

    • content
      型: array object[] · ClaudeContentBlock[]
      必須
      • type
        型: string 列挙値
        必須
        値
        • text
        • image
        • document
        • tool_use
        • tool_result
        • thinking
      • content
        型: string | array
      • id
        型: string
      • input
        型: object
        • propertyName
          型: anything
      • name
        型: string
      • source
        型: object
        • propertyName
          型: anything
      • text
        型: string
      • propertyName
        型: anything
    • id
      型: string
      必須
    • model
      型: string
      必須
    • role
      定数:  
      assistant
      必須
    • stop_reason
      型: string | null
      必須
    • type
      定数:  
      message
      必須
    • stop_sequence
      型: string | null
    • usage
      型: object · Usage

      Provider usage object. Fields vary by endpoint and provider.

      • propertyName
        型: anything
    • propertyName
      型: anything
  • 400
    型: object · ClaudeErrorResponse

    Claude invalid_request_error or Router request validation error

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
  • 401
    型: object · ClaudeErrorResponse

    Invalid or missing Felo API key

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
  • 402
    型: object · ClaudeErrorResponse

    Insufficient balance

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
  • 403
    型: object · ClaudeErrorResponse

    Account is not permitted to use the model. Disabled models are also rejected before upstream calls. Existing accepted requests and tasks continue.

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
  • 429
    型: object · ClaudeErrorResponse

    Spending or request limit reached

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
  • 502
    型: object · ClaudeErrorResponse

    Upstream provider request failed

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
  • 503
    型: object · ClaudeErrorResponse

    Provider or billing service unavailable

    Claude Errors API-compatible error envelope for Messages requests.

    • error
      型: object
      必須
      • message
        型: string
        必須
      • type
        型: string
        必須
      • propertyName
        型: anything
    • type
      定数:  
      error
      必須
    • request_id
      型: string
    • propertyName
      型: anything
    application/json
Request Example for post/api/v1/messages
curl https://openapi.felo.ai/api/v1/messages \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "model": "claude-sonnet-4-5",
  "max_tokens": 256,
  "messages": [
    {
      "role": "user",
      "content": "Write a one-sentence greeting."
    }
  ],
  "stream": false
}'
{
  "id": "string",
  "type": "message",
  "role": "assistant",
  "content": [
    {
      "type": "text",
      "text": "string",
      "id": "string",
      "name": "string",
      "input": {
        "additionalProperty": "anything"
      },
      "content": "string",
      "source": {
        "additionalProperty": "anything"
      },
      "additionalProperty": "anything"
    }
  ],
  "model": "string",
  "stop_reason": null,
  "stop_sequence": null,
  "usage": {
    "additionalProperty": "anything"
  },
  "additionalProperty": "anything"
}
Create a Claude message