CCAPI
  1. Schemas
CCAPI
  • Chat
    • Create chat completion
      POST
  • Audio
    • Convert text to speech
      POST
  • Images
    • Generate images (OpenAI-compatible)
      POST
    • Generate images (multimodal contents API)
      POST
    • Get job status
      GET
  • Catalog
    • List available models
    • List providers
    • Get provider details
  • Schemas
    • Schemas
      • ErrorObject
      • ErrorResponse
      • ChatMessage
      • ChatToolFunction
      • ChatTool
      • ChatCompletionRequest
      • ChatCompletionResponse
      • AudioSpeechRequest
      • AudioSpeechResponse
      • LegacyImageGenerationRequest
      • LegacyImageGenerationResponse
      • MultimodalInputContent
      • MultimodalImageParameters
      • MultimodalImageGenerationRequest
      • ImageDatum
      • MultimodalImageGenerationResponse
      • ModelSummary
      • ModelListResponse
      • ProviderSummary
      • ProviderListResponse
      • ProviderDetailResponse
    • Response
      • BadRequest
      • Unauthorized
      • BillingError
      • RateLimit
      • InternalError
  1. Schemas

ChatCompletionRequest

{
    "model": "string",
    "models": [
        "string"
    ],
    "messages": [
        {
            "role": "system",
            "content": "string",
            "name": "string"
        }
    ],
    "stream": false,
    "temperature": 1,
    "top_p": 0,
    "max_tokens": 1,
    "tools": [
        {
            "type": "function",
            "function": {
                "name": "string",
                "description": "string",
                "parameters": {}
            }
        }
    ],
    "tool_choice": "string",
    "metadata": {},
    "user": "string"
}
Built with