TikHub-AI-Proxy
    • 默认模块
      • Overview (PLEASE READ)
      • Streaming API
      • OpenAI
        • OpenAI response
        • OpenAI embeddings
        • OpenAI audio transcription
        • DeepSeek chat completion
        • OpenAI image generation
        • OpenAI image edit
        • OpenAI image edit (legacy alias)
        • Chat completion
      • Claude
        • Claude message
        • Claude chat completion
      • DeepSeek
        • DeepSeek chat completion
        • DeepSeek chat completion
      • Gemini
        • Gemini content
      • Kimi
        • Chat completion
      • Qwen
        • Chat completion
      • Schemas
        • ChatCompletionRequest
        • ImageGenerationRequest
        • ChatMessage
        • ImageEditRequest
        • Tool
        • ImageGenerationResponse
        • ToolCall
        • ChatCompletionResponse
        • ChatCompletionChoice
        • ContentFilterResults
        • UsageInfo
        • EmbeddingRequest
        • EmbeddingResponse
        • TranscriptionRequest
        • TranscriptionResponse
        • ClaudeMessageRequest
        • ClaudeMessageResponse
        • VideoCreateRequest
        • VideoResponse
        • VideoRemixRequest
        • GeminiGenerateContentRequest
        • VideoListResponse
        • ResponseRequest
        • GeminiContent
        • VideoDeleteResponse
        • GeminiGenerationConfig
        • GeminiGenerateContentResponse
        • ResponseObject
        • SeedanceTaskRequest
        • SeedanceTaskCreateResponse
        • SeedanceTaskResponse
        • KlingText2VideoRequest
        • KlingImage2VideoRequest
        • KlingTaskResponse
        • KlingTaskDetailResponse
        • KlingTaskListResponse
        • VeoGenerateRequest
        • VeoOperationResponse
        • VeoFetchOperationRequest
        • VeoFetchOperationResponse
    • V2
      • OpenAI
        • OpenAI response
        • OpenAI embeddings
        • OpenAI audio transcription
        • Chat completion (all text models)
        • OpenAI image generation
        • OpenAI image edit
        • OpenAI image edit (legacy alias)
      • Claude
        • Claude message
      • DeepSeek
        • DeepSeek chat completion
      • Gemini
        • Gemini content
      • Schemas
        • ChatCompletionRequest
        • ChatMessage
        • Tool
        • ToolCall
        • ChatCompletionResponse
        • ChatCompletionChoice
        • ContentFilterResults
        • UsageInfo
        • EmbeddingRequest
        • EmbeddingResponse
        • TranscriptionResponse
        • ClaudeMessageRequest
        • ClaudeMessageResponse
        • GeminiGenerateContentRequest
        • GeminiContent
        • GeminiGenerationConfig
        • GeminiGenerateContentResponse
        • ResponseRequest
        • ResponseObject
        • ImageGenerationRequest
        • ImageGenerationResponse

    GeminiGenerateContentRequest

    {
        "contents": [
            {
                "parts": [
                    {
                        "text": "string",
                        "inlineData": {
                            "mimeType": "string",
                            "data": "string"
                        },
                        "functionCall": {
                            "name": "string",
                            "args": {}
                        },
                        "functionResponse": {
                            "name": "string",
                            "response": {}
                        }
                    }
                ],
                "role": "user"
            }
        ],
        "tools": [
            {
                "functionDeclarations": [
                    {
                        "name": "string",
                        "description": "string",
                        "parameters": {}
                    }
                ],
                "codeExecution": {}
            }
        ],
        "toolConfig": {
            "functionCallingConfig": {
                "mode": "AUTO",
                "allowedFunctionNames": [
                    "string"
                ]
            }
        },
        "safetySettings": [
            {
                "category": "HARM_CATEGORY_HATE_SPEECH",
                "threshold": "BLOCK_NONE"
            }
        ],
        "systemInstruction": {
            "parts": [
                {
                    "text": "string",
                    "inlineData": {
                        "mimeType": "string",
                        "data": "string"
                    },
                    "functionCall": {
                        "name": "string",
                        "args": {}
                    },
                    "functionResponse": {
                        "name": "string",
                        "response": {}
                    }
                }
            ],
            "role": "user"
        },
        "generationConfig": {
            "temperature": 0,
            "topP": 0,
            "topK": 0,
            "maxOutputTokens": 0,
            "candidateCount": 1,
            "stopSequences": [
                "string"
            ],
            "responseMimeType": "string",
            "responseSchema": {},
            "responseModalities": [
                "text"
            ]
        },
        "cachedContent": "string"
    }
    Built with