TikHub-AI-Proxy
    • Overview (PLEASE READ)
    • Streaming API
    • OpenAI
      • OpenAI response
      • OpenAI embeddings
      • OpenAI audio transcription
      • OpenAI chat completion
    • Claude
      • Claude chat completion
      • Claude message
    • DeepSeek
      • DeepSeek chat completion
    • Sora
      • Sora video generation
      • Get Sora video status
      • Download Sora video content
      • Remix Sora video
      • List Sora videos
      • Delete Sora video
    • Gemini
      • Gemini content
    • Seedance
      • Seedance video generation
      • Retrieve Seedance task
    • Kling
      • Kling text-to-video
      • Retrieve Kling text-to-video task
      • Kling image-to-video
      • Retrieve Kling image-to-video task
    • Veo
      • Veo video generation
      • Fetch Veo video generation status
    • Schemas
      • ChatCompletionRequest
      • ChatMessage
      • Tool
      • ToolCall
      • ChatCompletionResponse
      • ChatCompletionChoice
      • ContentFilterResults
      • UsageInfo
      • EmbeddingRequest
      • EmbeddingResponse
      • TranscriptionRequest
      • TranscriptionResponse
      • ClaudeMessageRequest
      • ClaudeMessageResponse
      • VideoCreateRequest
      • VideoResponse
      • VideoRemixRequest
      • GeminiGenerateContentRequest
      • VideoListResponse
      • GeminiContent
      • VideoDeleteResponse
      • GeminiGenerationConfig
      • ResponseRequest
      • GeminiGenerateContentResponse
      • ResponseObject
      • SeedanceTaskRequest
      • SeedanceTaskCreateResponse
      • SeedanceTaskResponse
      • KlingText2VideoRequest
      • KlingImage2VideoRequest
      • KlingTaskResponse
      • KlingTaskDetailResponse
      • KlingTaskListResponse
      • VeoGenerateRequest
      • VeoOperationResponse
      • VeoFetchOperationRequest
      • VeoFetchOperationResponse

    ChatCompletionRequest

    {
        "model": "gpt-4o",
        "messages": [
            {
                "role": "system",
                "content": "string",
                "name": "string",
                "tool_calls": [
                    {
                        "id": "string",
                        "type": "function",
                        "function": {
                            "name": "string",
                            "arguments": "string"
                        }
                    }
                ],
                "tool_call_id": "string"
            }
        ],
        "audio": {
            "voice": "string",
            "format": "string"
        },
        "frequency_penalty": 0,
        "logit_bias": null,
        "logprobs": false,
        "max_completion_tokens": 0,
        "max_tokens": 0,
        "metadata": {
            "property1": "string",
            "property2": "string"
        },
        "modalities": [
            "text"
        ],
        "n": 1,
        "parallel_tool_calls": true,
        "prediction": {
            "type": "string",
            "content": "string"
        },
        "presence_penalty": 0,
        "reasoning_effort": "medium",
        "response_format": {
            "type": "text",
            "json_schema": {}
        },
        "seed": 0,
        "service_tier": "auto",
        "stop": "string",
        "store": false,
        "stream": false,
        "stream_options": null,
        "temperature": 1,
        "tool_choice": "none",
        "tools": [
            {
                "type": "function",
                "function": {
                    "name": "string",
                    "description": "string",
                    "parameters": {},
                    "strict": true
                }
            }
        ],
        "top_logprobs": 0,
        "top_p": 1,
        "user": "string",
        "verbosity": "medium",
        "web_search_options": {
            "search_context_size": "low"
        }
    }
    Built with