Onemini NewAPI
    • 视频生成模型
      • Seedance 系列
        • 创建 Seedance 视频生成任务
        • 查询 Seedance 视频任务
        • 下载 Seedance 生成视频
      • Seedance 系列(兼容接口)
        • 创建 Seedance 视频任务(兼容接口)
        • 查询 Seedance 视频任务(兼容格式)
    • 模型与鉴权
      • 查询可用模型
    • 文本聊天模型
      • OpenAI 兼容
        • 创建聊天补全
      • Gemini 原生
        • Gemini 原生流式内容生成
      • OpenAI Responses
        • 创建 Responses 响应
    • 图片生成模型
      • Gemini 原生(文本与图片)
        • Gemini 原生内容生成
      • OpenAI gpt-image系列
      • 统一 JSON 路由
      • Seedream
        • Seedream 图片生成与编辑
      • OpenAI gpt-image-2
        • gpt-image-2 图片生成
        • 编辑 OpenAI 图片
    • 数据模型
      • ModelListResponse
      • SeedanceVideoRequest
      • ModelObject
      • SeedanceMetadata
      • ChatCompletionRequest
      • SeedanceContentItem
      • ChatMessage
      • MediaUrl
      • ChatContentPart
      • VideoTask
      • ChatCompletionResponse
      • VideoTaskError
      • ChatCompletionChoice
      • LegacyTaskResponse
      • TokenUsage
      • ApiError
      • GeminiGenerateContentRequest
      • ResponsesCreateRequest
      • GeminiContent
      • ResponsesInputItem
      • GeminiPart
      • ResponsesInputContentPart
      • GeminiInlineData
      • ResponsesReasoning
      • GeminiGenerationConfig
      • ResponsesCreateResponse
      • GeminiGenerateContentResponse
      • ResponsesOutputItem
      • GeminiUsageMetadata
      • ResponsesOutputContent
      • ImageGenerationRequest
      • ResponsesUsage
      • ImageEditRequest
      • ImageGenerationResponse
      • ImageData
      • OneminiApiError

    GeminiGenerateContentRequest

    {
        "contents": [
            {
                "role": "user",
                "parts": [
                    {
                        "text": "string",
                        "inlineData": {
                            "mimeType": "image/png",
                            "data": "string"
                        },
                        "fileData": {
                            "mimeType": "string",
                            "fileUri": "http://example.com"
                        },
                        "functionCall": {
                            "property1": "string",
                            "property2": "string"
                        },
                        "functionResponse": {
                            "property1": "string",
                            "property2": "string"
                        },
                        "thought": true,
                        "property1": "string",
                        "property2": "string"
                    }
                ]
            }
        ],
        "systemInstruction": {
            "role": "user",
            "parts": [
                {
                    "text": "string",
                    "inlineData": {
                        "mimeType": "image/png",
                        "data": "string"
                    },
                    "fileData": {
                        "mimeType": "string",
                        "fileUri": "http://example.com"
                    },
                    "functionCall": {
                        "property1": "string",
                        "property2": "string"
                    },
                    "functionResponse": {
                        "property1": "string",
                        "property2": "string"
                    },
                    "thought": true,
                    "property1": "string",
                    "property2": "string"
                }
            ]
        },
        "generationConfig": {
            "temperature": 0,
            "topP": 0,
            "topK": 0,
            "maxOutputTokens": 1,
            "candidateCount": 1,
            "stopSequences": [
                "string"
            ],
            "responseMimeType": "application/json",
            "responseSchema": {
                "property1": "string",
                "property2": "string"
            },
            "responseModalities": [
                "TEXT"
            ],
            "thinkingConfig": {
                "includeThoughts": true,
                "thinkingBudget": 0,
                "thinkingLevel": "string"
            },
            "imageConfig": {
                "aspectRatio": "16:9",
                "imageSize": "1K",
                "property1": "string",
                "property2": "string"
            },
            "property1": "string",
            "property2": "string"
        },
        "safetySettings": [
            {
                "property1": "string",
                "property2": "string"
            }
        ],
        "tools": null,
        "toolConfig": {
            "property1": "string",
            "property2": "string"
        },
        "cachedContent": "string",
        "property1": "string",
        "property2": "string"
    }
    Built with