Felo API PlatformFelo API Platform
v0.3.0
OpenAPI 3.1.0

Create a model response

伺服器:https://openapi.felo.ai
用戶端程式庫

Create a model response

​

OpenAI Responses API-compatible endpoint. A successful non-streaming response uses the Responses object shape; when stream=true the endpoint returns Responses SSE events. A failed Responses object can use status=failed with error={code,message} even when the HTTP request itself completed.

請求本文·ResponsesRequest
必填
application/json
  • input
    必填
    • 類型: string
  • model
    類型: string
    必填
  • include
    類型: array string[]
  • instructions
    類型: string
  • max_output_tokens
    類型: integer
    最小值:  
    1

    Integer numbers.

  • metadata
    類型: object
    • propertyName
      類型: anything
  • previous_response_id
    類型: string
  • reasoning
    類型: object
    • propertyName
      類型: anything
  • store
    類型: boolean
  • stream
    類型: boolean
  • temperature
    類型: number
    最小值:  
    0
  • text
    類型: object
    • propertyName
      類型: anything
  • propertyName
    類型: anything
  • tool_choice
    • 類型: string
  • tools
    類型: array object[]
    • propertyName
      類型: anything
  • top_p
    類型: number
    最小值:  
    0
    最大值:  
    1
  • propertyName
    類型: anything
回應
  • 200
    類型: object · ResponsesResponse

    Response object or streaming response events

    • id
      類型: string
      必填
    • object
      常數:  
      response
      必填
    • status
      類型: string 列舉
      必填
      值
      • completed
      • failed
      • in_progress
      • cancelled
      • queued
      • incomplete
    • error
      類型: object · ResponsesError
      • code
        類型: string
        必填
      • message
        類型: string
        必填
      • propertyName
        類型: anything
    • metadata
      類型: object
      • propertyName
        類型: anything
    • model
      類型: string
    • output
      類型: array object[]
      • propertyName
        類型: anything
    • output_text
      類型: string
    • usage
      類型: object · Usage

      Provider usage object. Fields vary by endpoint and provider.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
  • 400
    類型: object · OpenAIErrorResponse

    Invalid request, model, or provider mapping

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 401
    類型: object · OpenAIErrorResponse

    Invalid or missing Felo API key

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 402
    類型: object · OpenAIErrorResponse

    Insufficient balance

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 403
    類型: object · OpenAIErrorResponse

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

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 429
    類型: object · OpenAIErrorResponse

    Spending or request limit reached

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 502
    類型: object · OpenAIErrorResponse

    Upstream provider request failed

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 503
    類型: object · OpenAIErrorResponse

    Provider or billing service unavailable

    OpenAI-compatible error envelope. The Router may include code and message without all optional upstream fields.

    • error
      類型: object
      必填
      • message
        類型: string
        必填
      • code
        類型: string | null
      • param
        類型: string | null
      • type
        類型: string

        OpenAI-compatible error type when supplied.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
Request Example for post/api/v1/responses
curl https://openapi.felo.ai/api/v1/responses \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "model": "gpt-5.5",
  "input": "Explain why the sky is blue in one sentence.",
  "stream": false
}'
{
  "id": "string",
  "object": "response",
  "status": "completed",
  "output": [
    {
      "additionalProperty": "anything"
    }
  ],
  "output_text": "string",
  "error": {
    "code": "string",
    "message": "string",
    "additionalProperty": "anything"
  },
  "usage": {
    "additionalProperty": "anything"
  },
  "model": "string",
  "metadata": {
    "additionalProperty": "anything"
  },
  "additionalProperty": "anything"
}
Create a model response