1. Gemini原生格式
OpenAI Next
  • 系统介绍
  • 系统优势
  • 补充说明
  • 辅助功能
    • 账户余额查询
      • 余额查询-按量计费站点
      • 余额查询-按次计费站点
    • 文件上传
      • 文件上传-OpenAI Next
    • 文件解析
      • 文件解析功能介绍
  • 按量计费-LLM模型
    • LLM
      • 资源介绍
      • 接入说明
      • 参数详情
      • 发出请求
      • 身份验证
      • 项目说明
      • 费用说明
    • Fish tts
      • 创建语音模型
      • 文本转语音
  • 按次计费
    • 图片生成
      • GPT-imgae-2
        • Chat
          • 聊天补全接口,支持文本和图片输入
        • Images
          • 图片生成/图生图接口,支持 image 数组传 URL 或 base64
          • 图片编辑接口,multipart/form-data 格式,不推荐
      • Flux
        • OpenAI Image 格式
          • 创建图像
        • chat 格式
          • Flux chat格式
        • /images/edits格式
          • 创建图片编辑
      • GPT 4o Image Generation
        • Chat
          • 创建任务
        • DALL·E
          • 创建任务
          • 编辑任务
      • Midjourney Proxy
        • 资源介绍
        • 参数说明
        • 调用示例
        • 费用说明
        • 任务查询
          • ListByCondition
          • FetchFromTask
          • ImageSeed
        • 任务提交
          • Imagine
          • Change
          • Blend
          • Describe
          • Action
          • Modal
          • Shorten
          • SwapFace
      • 即梦系列
        • chat
          • Chat / 多模态对话
        • images
          • 文生图生成
          • 图生图 / 图片编辑
      • Midjourney Chat
        • 资源介绍
        • ImageGenerations
      • Recraft Proxy
        • styles
          • 创建样式
        • images
          • 生成图像
          • 图像矢量化
          • 移除背景
          • 清晰度提升
          • 生成式放大
      • Gemini-nano-banana
        • 纯官方格式 教程 必看
        • Gemini原生格式
          • 使用 Gemini 2.5 Flash Image 生成内容
            POST
          • 使用 Gemini 3 Pro Image Preview 生成内容
            POST
        • OpenAI兼容格式
          • Chat
            • Chat 格式生成图片
          • Images
            • 创建图像
            • 创建图片编辑
    • 视频生成
      • 即梦 seedance 视频生成
        • 即梦视频生成
      • 可灵视频
        • Omni-Video
          • 创建 Omni-Video 任务
          • 查询 Omni-Video 单个任务
          • 分页查询 Omni-Video 任务列表
        • 文生视频
          • 创建文生视频任务
          • 查询文生视频单个任务
          • 分页查询文生视频任务列表
        • 图生视频
          • 创建图生视频任务
          • 查询图生视频单个任务
          • 分页查询图生视频任务列表
      • 谷歌Veo/omni 视频生成
        • 视频统一格式
          • 统一格式-创建视频
          • 查询任务
        • OpenAI官方视频格式
          • Sora格式-创建视频
          • 查询视频详情
          • 下载视频(不推荐该方式,查询视频接口有返回 url的)
          • 编辑视频(remix)(不支持)
      • Sora-2 视频生成
        • OpenAI官方视频格式
          • 创建视频(新)
          • 创建视频(旧)
          • 查询视频详情
          • 下载视频(不推荐该方式,查询视频接口有返回 url的)
          • 编辑视频(remix)
        • 创建角色接口
          • 3.Create Character(角色创建)
          • 5.Retrieve Video(获取视频)
        • Chat格式
          • 流式请求
        • Proxy格式
          • 创建视频
          • 查询任务
      • 千问Wan视频生成
        • 创建文生视频或图生视频任务
        • 创建首尾帧生视频任务
        • 查询异步任务结果
      • Vidu
        • API接口
          • 图生视频
          • 参考生视频
          • 首尾帧
          • 文生视频
          • 对口型
          • 文生音频
          • 查询任务接口
          • 取消任务接口
          • 参考生图
      • Runway-视频生成
        • 视频生成
          • 提交图生视频任务
        • 任务查询
          • 查询视频生成任务
      • Grok视频
        • Video Generation
          • 创建视频生成任务
        • Video Editing
          • 创建视频编辑任务
        • Video Extension
          • 创建视频续写任务
        • Video Tasks
          • 查询视频任务结果
    • 音乐生成
      • 海绵音乐(音乐生成)
        • MusicGeneration
          • General Endpoint for Actions
        • Usage
          • Query Usage
      • Suno-新
        • music
          • 提交音乐创作任务
          • 查询单个任务状态
          • 批量查询任务状态
        • persona
          • 创建 Persona
          • 创建 Persona 流程二
        • concat
          • 通过 clipId 拼接整首歌
          • 通过请求体拼接整首歌
        • upload
          • 上传本地参考音频
          • 通过 URL 上传参考音频
  • 数据模型
    • Schemas
      • Blend提交参数
      • 401
      • Pet
      • LyricsRequest
      • TextToVideoRequest
      • Text2VideoRequest
      • veo 模型
      • MediaResource
      • BaseResp
      • VideoSynthesisRequest
      • veo_status
      • BaseCreateCompletionRequest
      • 403
      • Category
      • ImagePosition
      • GetModelResponse
      • LyricsResponse
      • GenLyricsRequest
      • CameraControl
      • Image2VideoRequest
      • ImageToVideoResponse
      • veo status
      • FrameToFrameRequest
      • VideoSynthesisInput
      • CheckActivationDTO
      • 404
      • Tag
      • TaskResponse
      • MusicRequest
      • GenLyricsResponse
      • CameraConfig
      • NotFound
      • MultiImage2VideoRequest
      • TaskDetail
      • TaskStatus
      • ModelResponse
      • VideoSynthesisParameters
      • ChatMessageContent
      • 500
      • CreateModelResponse
      • MusicResponse
      • GenSongV4Request
      • TextToVideoResponse
      • VideoExtendRequest
      • TaskFailure
      • AsyncTaskCreationResponse
      • TTSRequest
      • KF2VInput
      • Describe提交参数
      • GenerationResponse
      • AudioCheckResponse
      • UploadMusicRequest
      • GenSongV4Response
      • AsyncTaskResultResponse
      • SubmitResponse
      • ChatCompletionRequestMessage
      • 400FromGeneration
      • AudioTrainingResponse
      • ConcatMusicRequest
      • QuerySongRequest
      • TaskData
      • DynamicMask
      • SampleEntity
      • SubmitTaskRequest
      • Discord账号
      • 400FromUpscale
      • VideoCheckResponse
      • TaskStatusResponse
      • QuerySongResponse
      • TaskResult
      • Message
      • ChatCompletionResponseMessage
      • AudioTrainingStatusResponse
      • QueryUsageResponse
      • VideoResult
      • TaskCreateResponse
      • SubmitTaskResponse
      • TransformSuccessResponse
      • Filter
      • VideoTrainingResponse
      • TaskDetailResponse
      • Sample
      • ChatCompletionMessageToolCalls
      • VideoTrainingStatusResponse
      • VideoExtendDetailResponse
      • Reference
      • StatusResponse
      • Imagine提交参数
      • CreateAudioResponse
      • TaskListResponse
      • ProgressResponse
      • ChatCompletionMessageToolCall
      • AudioSynthesisStatusResponse
      • VideoExtendListResponse
      • Map«string,object»
      • CreateVideoResponse
      • VideoSynthesisStatusResponse
      • Author
      • Message«Discord账号»
      • Prosody
      • ChatCompletionTool
      • ProgressData
      • Message«Map«string,object»»
      • CreateChatCompletionExclusiveFields
      • Message«Void»
      • FunctionObject
      • NotFoundData
      • Message«string»
      • CreateModelRequest
      • FunctionParameters
      • Modal提交参数
      • ValidationError
      • GenerationID
      • Option
      • ImageToVideoRequest
      • Pageable
      • ContentModerationResponse
      • Page«Map«string,object»»
      • InpaintingSearchModeRequestBody
      • Page«任务»
      • InpaintingMaskingModeRequestBody
      • Shorten提交参数
      • Creativity
      • Sort
      • Engine
      • SwapFace提交参数
      • Error
      • TaskQueryDTO
      • CfgScale
      • 任务
      • ClipGuidancePreset
      • 任务查询参数
      • UpscaleImageHeight
      • 变化任务提交参数
      • UpscaleImageWidth
      • 变化任务提交参数-simple
      • DiffuseImageHeight
      • 可执行按钮
      • DiffuseImageWidth
      • 可执行按钮_1
      • Sampler
      • 执行动作参数
      • Samples
      • 提交结果
      • Seed
      • 激活服务参数
      • Steps
      • 账号修改参数
      • Extras
      • 账号创建参数
      • StylePreset
      • 账号查询参数
      • TextPrompt
      • 账号筛选条件
      • TextPrompts
      • TextPrompts
      • InputImage
      • InitImage
      • InitImageStrength
      • InitImageMode
      • StepScheduleStart
      • StepScheduleEnd
      • MaskImage
      • MaskSource
      • GenerationRequestOptionalParams
      • RealESRGANUpscaleRequestBody
      • ImageToImageRequestBody
      • ImageToImageUsingImageStrengthRequestBody
      • ImageToImageUsingStepScheduleRequestBody
      • MaskingRequestBody
      • MaskingUsingMaskImageRequestBody
      • MaskingUsingInitImageAlphaRequestBody
      • TextToImageRequestBody
      • AccountResponseBody
      • BalanceResponseBody
      • ListEnginesResponseBody
      • FinishReason
      • Image
      • OrganizationMembership
    • Response
      • BadRequest
      • Unauthorized
      • RateLimited
      • InternalServerError
    • 示例数据模型
    • veo
    • ImageResponse
    • KeLingVideoExtendParams
    • Error
    • ErrorResponse
    • ErrorResponse
    • GenerateContentRequest
    • GenerateMusicRequest
    • MediaUrl
    • CreateTaskResponse
    • KeLingApiResult
    • GetModelResponse
    • ChatMessage
    • ChatMessage
    • GenerateContentRequestPro
    • GenerateMusicResponse
    • ReferenceImage
    • CreateTaskData
    • KeLingText2VideoParams
    • ModelResponse
    • ChatRequest
    • ChatRequest
    • ContentPart
    • Content
    • TaskSubmitItem
    • VideoGenerationRequest
    • ChatContentPart
    • TaskResponse
    • ErrorResponse
    • KeLingApiMultiVideoParams
    • SubmitResponse
    • ChatChoice
    • ChatChoice
    • ImageConfig
    • ContentWithRole
    • GetStateResponse
    • VideoEditRequest
    • TextContentPart
    • TaskListResponse
    • KeLingImage2VideoParams
    • SampleEntity
    • ChatResponse
    • ChatResponse
    • ChatCompletionResponse
    • Part
    • GeneratedMusicItem
    • VideoExtensionRequest
    • ImageUrlContentPart
    • TaskData
    • ChatCompletionRequest
    • Input
    • TaskResponse
    • EmbeddingsRequest
    • EmbeddingsRequest
    • InlineData
    • GetStateBatchRequest
    • CreateTaskResponse
    • TaskStatus
    • KeLingApiEffectParams
    • CreateModelResponse
    • EmbeddingsResponse
    • EmbeddingsResponse
    • Tool
    • UploadByUrlRequest
    • VideoTaskVideo
    • TaskInfo
    • KeLingApiImageParams
    • Sample
    • ImageGenerationRequest
    • ImageGenerationRequest
    • GenerationConfig
    • UploadResponse
    • ImageGenerationResponse
    • TaskResult
    • KeLingNewApiVideoParams
    • Reference
    • ImageEditRequest
    • ImageEditRequest
    • GenerationConfigPro
    • ConcatRequest
    • TaskErrorInfo
    • ImageData
    • GeneratedVideo
    • MetaData
    • ProgressResponse
    • ImageResponse
    • ImageResponse
    • CreatePersonaRequest
    • VideoTaskResponse
    • WatermarkInfo
    • RString
    • AudioCheckResponse
    • ImageConfigPro
    • CreatePersonaResponse
    • ErrorResponse
    • KeLingVideoParams
    • AudioTrainingResponse
    • GenerateContentResponse
    • GenericResponse
    • OmniVideoCreateRequest
    • KeLingMultiVideoParams
    • Author
    • GenerateContentResponsePro
    • TextToVideoCreateRequest
    • UsageInfo
    • KeLingLipSyncParams
    • Prosody
    • Candidate
    • ImageToVideoCreateRequest
    • KeLingImageParams
    • ProgressData
    • CandidatePro
    • KlingVideoModelName
    • KeLingEffectParams
    • VideoCheckResponse
    • SafetyRating
    • VideoMode
    • KeLingTaskDetailView
    • AudioTrainingStatusResponse
    • UsageMetadata
    • AspectRatio
    • KeLingTaskStatusView
    • NotFoundData
    • GroundingMetadata
    • Duration
    • RKeLingTaskStatusView
    • CreateModelRequest
    • GroundingChunk
    • SoundSwitch
    • BalanceRecordDetailView
    • VideoTrainingResponse
    • MultiPromptItem
    • BalanceRecordView
    • VideoTrainingStatusResponse
    • ImageListItem
    • RBalanceRecordView
    • CreateAudioResponse
    • ElementItem
    • RDouble
    • AudioSynthesisStatusResponse
    • VideoListItem
    • CreateVideoResponse
    • VoiceItem
    • VideoSynthesisStatusResponse
    • DynamicMask
    • Pet
    • TrajectoryPoint
    • Category
    • CameraControl
    • Tag
    • CameraConfig
    • NotFound
    • TTSRequest
    • ProsodyControl
    • ReferenceAudio
    • ErrorResponse
    • ValidationError
  1. Gemini原生格式

使用 Gemini 3 Pro Image Preview 生成内容

Draw
https://drwa.openai-next.com
Draw
https://drwa.openai-next.com
POST
/v1beta/models/gemini-3-pro-image-preview:generateContent
使用 Gemini 3 Pro Image Preview(Nano Banana Pro)模型生成图片。这是一款先进的图片生成和编辑模型,针对专业资源制作进行了优化。

功能特点#

高分辨率输出:支持 1K、2K 和 4K 分辨率
高级文字渲染:能够生成清晰易读的风格化文字
Google 搜索接地:可使用 Google 搜索验证事实并根据实时数据生成图像
思考模式:模型会利用"思考"过程来推理复杂的提示
最多 14 张参考图片:支持混合使用多张参考图片

参考图片限制#

最多 6 张高保真对象图片
最多 5 张人像照片(用于保持角色一致性)
总共最多 14 张图片

使用场景#

专业资源制作
复杂的多轮创建和修改任务
信息图表、菜单、图表和营销素材
基于实时数据的图片生成

请求参数

Authorization
API Key
在 header 添加参数
x-goog-api-key
示例:
x-goog-api-key: ********************
or
Body 参数application/json必填

示例
生成教育性信息图表
{
    "contents": [
        {
            "role": "user",
            "parts": [
                {
                    "text": "Create a vibrant infographic that explains photosynthesis as if it were a recipe for a plants favorite food. Show the 'ingredients' (sunlight, water, CO2) and the 'finished dish' (sugar/energy). The style should be like a page from a colorful kids cookbook, suitable for a 4th grader."
                }
            ]
        }
    ],
    "generationConfig": {
        "responseModalities": [
            "TEXT",
            "IMAGE"
        ]
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location 'https://drwa.openai-next.com/v1beta/models/gemini-3-pro-image-preview:generateContent' \
--header 'x-goog-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "contents": [
        {
            "role": "user",
            "parts": [
                {
                    "text": "Create a vibrant infographic that explains photosynthesis as if it were a recipe for a plants favorite food. Show the '\''ingredients'\'' (sunlight, water, CO2) and the '\''finished dish'\'' (sugar/energy). The style should be like a page from a colorful kids cookbook, suitable for a 4th grader."
                }
            ]
        }
    ],
    "generationConfig": {
        "responseModalities": [
            "TEXT",
            "IMAGE"
        ]
    }
}'

返回响应

🟢200
application/json
成功生成内容
Bodyapplication/json

示例
{
    "candidates": [
        {
            "content": {
                "role": "user",
                "parts": [
                    {
                        "text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme",
                        "inline_data": {
                            "mime_type": "image/jpeg",
                            "data": "<BASE64_IMAGE_DATA>"
                        },
                        "thought": true,
                        "thought_signature": "string"
                    }
                ]
            },
            "finishReason": "STOP",
            "safetyRatings": [
                {
                    "category": "HARM_CATEGORY_HARASSMENT",
                    "probability": "NEGLIGIBLE"
                }
            ]
        }
    ],
    "usageMetadata": {
        "promptTokenCount": 100,
        "candidatesTokenCount": 1290,
        "totalTokenCount": 1390
    },
    "groundingMetadata": {
        "searchEntryPoint": {
            "renderedContent": "string"
        },
        "groundingChunks": [
            {
                "web": {
                    "uri": "https://example.com/article",
                    "title": "Example Article Title"
                }
            }
        ]
    }
}
🟠400
🟠401
🟠429
🔴500
修改于 2025-12-29 09:13:52
上一页
使用 Gemini 2.5 Flash Image 生成内容
下一页
Chat 格式生成图片
Built with