Pinky API
  1. chat compatible format
Pinky API
  • Pinky API
    • introduction
    • Online debugging instructions
    • Make a request
    • Chat
      • ChatGpt interface
        • ChatGPT Audio
          • GPT-4o-audio
          • Audio to text whisper-1
          • Audio to text gpt-4o-transcribe
          • Create voice gpt-4o-mini-tts
          • Create a translation (not supported)
        • ChatGPT Chat (Chat)
          • Chat completed object
          • Chat complete block object
          • Create a chat completion (streaming)
          • Create chat completion (non-stream)
          • Create a chat image (streaming)
          • Create chat image (streaming) best64
          • Create a chat image (non-stream)
          • Create a chat creation map (non-stream)
          • Official Function calling call
          • Official N test
          • List the model
          • Create a chat function call
          • Create structured output
          • Controlling the degree of effort of inference model
          • Create a chat completion qwen-mt-turbo
          • Create chat completion deepseek v3.1 thinking degree (streaming)
        • ChatGPT automatic completion (Completions)
          • Complete object
          • Created complete
        • ChatGPT Embeddings
          • Embed Objects
          • Create an embed
        • Web Search
          • Web Search
      • Anthropic Claude interface
        • Chat completed object
        • Chat complete block object
        • Create chat completion (streaming) [native format]
        • Create function call (streaming) [native format]
        • Create a thought chat [native format]
        • Create a thought chat
        • Create a chat completion (streaming)
        • Create chat completion (non-stream)
        • Create a chat image (streaming)
        • Create a chat image (non-stream)
      • Google Gemini interface
        • Native format
          • Chat interface [native format]
          • Chat interface-stream [native format]
          • Chat interface + thinking - stream [native format]
          • Image creation [native format]
          • Image editing [Native format] gemini-2.5-flash-image-preview
          • Image editing [native format]
          • Image understanding [native format]
          • Format output [Native format]
          • Function call [native format]
          • Document understanding [Native format]
          • google-search [native format]
          • Video Understanding-base64 [Native Format]
          • Chat interface - Read web page [Native format] Under development
          • Video Understanding - url [Native Format] Under Development
          • Imagen 3 Generate Images [Native Format] Under Development
        • chat compatible format
          • gemini picture creation interface [chat compatible format]
            POST
          • Chat interface [chat compatible format]
            POST
          • Chat Interface-Thinking 1 [chat compatible format]
            POST
          • Chat Interface-Thinking 2 [chat compatible format]
            POST
          • Graphic recognition interface [chat compatible format]
            POST
          • Chat + read file interface [chat compatible format]
            POST
    • Chat (Responses)
      • Comparison of Responses API and Chat API
      • Create a model response
      • Create a function call
      • Create a model response (streaming return)
      • Create a model response (control thinking length)
      • Create a web search
      • Create a model response gpt-5 enable thinking
    • Drawing model
      • README
      • Image object
      • Midjourney
        • Upload pictures
        • Submit Imagine Tasks
        • Query task status based on task ID
        • Query tasks based on ID list
        • Get the seed of the task image
        • Perform Action Action
        • Submit Blend Task
        • Submit Describe Task
        • Submit Shorten task
        • Submit Modal
        • Submit swap_face task
      • Ideogram
        • Generate 3.0 (Photo by Wensheng) Generate
        • Generate 3.0 (Picture Edit) Edit
        • Generate 3.0 (Picture Remake) Remix
        • Generate 3.0 (image reconstruction) Reframe
        • Generate 3.0 (replace background) Replace Background
        • Ideogram (Literature Photo)
        • Remix (mixed image)
        • Upscale (Zoom in HD)
        • Describe (Description)
      • GPT Image-1
        • Create gpt-image-1
        • Edit gpt-image-1
        • Mask gpt-image-1
      • DALL·E 3
        • Create DALL·E 3
      • FLUX Series
        • GPT Compatible Format
          • Flux creation (OpenAI dall-e-3 format)
          • Flux editing (OpenAI dall-e-3 format)
        • Replicate official format
          • Access Tutorial
          • Create a task black-forest-labs/flux-kontext-dev
          • Query tasks
      • Bean bag series
        • doubao-seedream-3-0-t2i-250415
        • doubao-seededit-3-0-i2i-250628
        • doubao-seedream-4-0-250828-Wensheng Picture
        • doubao-seedream-4-0-250828-pictures
        • doubao-seedream-4-0-250828- Multiple pictures and pictures
      • Fal.ai platform
        • Status code
        • Get the request result
        • /fal-ai/nano-banana Text-to-Image
        • /fal-ai/nano-banana/edit Image Editing
    • Video Model
      • Veo Video Generation
        • Unified Video Format
          • Status code
          • Create a video
          • Query tasks
          • Create videos with pictures
      • Luma VIdeo Generation
        • Official API format
          • Status code
          • Submit a video generating task
          • Extended Video
        • Query tasks
          • Query a single task
          • Bulk acquisition tasks
      • Kling Kuaishou Kao Ling
        • Callback protocol
        • Image generation
        • Wensheng Video
        • Pictures and videos
        • Query Tasks (Free)
      • Runway video generation
        • Status code
        • Submit video generation task
        • Query video tasks (free)
      • Dream video generation
        • Status code
        • Submit video generation task
        • Query video tasks (free)
      • Conch video generation
        • Status code
        • Submit video generation task
        • Video task status query
      • Doubao Video Generation
        • Text-to-Video Example
        • Image-to-Video (First Frame)
        • seedance-lite (First and Last Frame)
        • Image-to-Video (base64)
        • seedance-lite (Reference Images)
        • Query single task
        • Query video task list (default)
        • Query video task list (multiple task IDs)
    • GPTs Related
      • Introduction
      • GPTs dialogue
    • System API
      • Get the token list
      • Add token
      • Get the token support model
      • Get account information
    • Wensheng Music Suno
      • illustrate
      • parameter
      • Task Submission
        • Generate songs (inspiration mode)
        • Generate songs (custom mode)
        • Generate songs (continued mode)
        • Generate songs (singer style)
        • Generate songs (upload songs for secondary creation)
        • Generate songs (split songs)
        • Generate lyrics
        • Song splicing
      • Query interface
        • Bulk acquisition tasks
        • Query a single task
    • Fal-ai aggregation platform
      • Access Tutorial
      • Get the request result
      • /fal-ai/flux-1/dev
      • /fal-ai/flux-1/dev/image-to-image
      • /fal-ai/flux-1/dev/redux
      • /fal-ai/flux-1/schnell/redux
      • /fal-ai/flux-pro/kontext
      • /fal-ai/flux-pro/kontext/text-to-image
      • /fal-ai/flux-pro/kontext/max
      • /fal-ai/flux-pro/kontext/max/multi
      • /fal-ai/wan/v2.2-a14b/image-to-image
      • /fal-ai/bytedance/seedream/v4/text-to-image
      • /fal-ai/bytedance/seedream/v4/edit
      • /fal-ai/vidu/reference-to-image
      • /fal-ai/imagen4/preview
      • /fal-ai/qwen-image-edit-lora
    • Rerank reordering model
      • Reorder
    • Replicate aggregation platform
      • Access Tutorial
      • Flux resolution
      • Query tasks
      • Create a task - via model version (predictions)
      • Create task stability-ai/stable-diffusion
      • Create task stability-ai/sdxl
      • Create task stability-ai/stable-diffusion-inpainting
      • Create task stability-ai/stable-diffusion-img2img
      • Create a task lucataco/flux-schnell-lora
      • Create a task lucataco/flux-dev-lora
      • Create a task andreasjansson/stable-diffusion-animation
      • Create a task sujaykhandekar/object-removal
      • Create a task cjwbw/rembg
      • Create a task lucataco/animate-diff
      • Create a task ideagram-ai/ideogram-v2-turbo
      • Create a task black-forest-labs/flux-kontext-dev
      • 创建任务 minimax/video-01-live
      • 创建任务 minimax/video-01
      • Create a task recraft-ai/recraft-v3
      • Create a task recraft-ai/recraft-v3-svg
      • Create a task black-forest-labs/flux-1.1-pro-ultra
      • Create a task black-forest-labs/flux-kontext-pro
      • Create a task black-forest-labs/flux-kontext-max
      • Create task flux-kontext-apps/multi-image-kontext-max
      • Create task flux-kontext-apps/multi-image-kontext-pro
      • Create a task lucataco/remove-bg
      • Create a task rifusion/riffusion
      • Create a task black-forest-labs/flux-fill-dev
      • Create a task black-forest-labs/flux-fill-pro
      • Create a task google/imagen-4-fast
      • Create a task google/imagen-4-ultra
      • Create a task google/imagen-4
      • Create task prunaai/vace-14b
    • Python configuration method
      • python openai official library (using AutoGPT, langchain, etc.)
      • python continuous conversation
      • python using speech to text
      • Python uses text to voice
      • python vectorization using Embeddings
      • python call DALL·E
      • python simple call openai function-calling demo
      • python simple langchain call openai demo
      • python llama_index configuration
      • Basic Python dialogue
      • Python uses gpt-4o to recognize pictures - local pictures
      • Python uses gpt-4o to recognize images
      • Python uses Claude to recognize images
      • python library streaming output
      • gpt realtime model call
      • python request request streaming output demo
      • python create editing images using gpt-image-1
    • PHP configuration method
      • php edit demo using image
    • nodejs configuration method
      • nodejs basic dialogue
    • Tutorials for using various plug-ins/software
      • N8N Workflow Using Transfer API Tutorial
      • Gemini CLI Transit Station Configuration Tutorial
      • Claude Code installation tutorial
      • CherryStudio calls include MCP
      • Cherry Studio Configuration Tutorial
      • CherryStudio configuration o4 inference level
      • diify add model
      • cline configuration tutorial
      • aider configuration tutorial
      • Cursor configuration tutorial
      • lobechat setup tutorial
      • ChatBox (recommended)
      • Open source gpt_academic
      • nextchat setup tutorial
      • zotero gpt configuration method
      • CLAUDE DEV configuration tutorial
      • Immersive Translation Setting up gpt Translation
      • Browser plugin ChatGPT Sidebar
      • chatgpt-on-wechat configuration tutorial
      • chatgpt GPT Academic Academic Optimization Configuration GPT Tutorial
    • Help Center
      • AI Return Field: Thinking Related
      • HTTP status code and its meaning
      • Self-built picture bed API
    • Basic introduction to transit stations
      • API Quick Start Guide
      • Contact customer service
      • Group detailed table
      • The particularity of grouping and price difference
      • How to create a new token for a specified group
      • Proxy interface call address
      • API Key Quota Query Service
      • Free AI chat project navigation
  1. chat compatible format

gemini picture creation interface [chat compatible format]

POST
/v1/chat/completions
Given a prompt, the model will return the completion of one or more predictions and can also return the probability of an overriding marker for each position.
Created for the provided prompts and parameters
Official document: https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "max_tokens": 4096,
  "model": "gemini-2.0-flash-exp-image-generation",

  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "主题风格改成红色"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJYCAYAAACadoJwAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nOy9WZdlx3Xn99txzp1zniqz5ioURoIASYlUi1K3ZLtty152e1jLy8sfwN/Dj/4qfvBatlarW25SVItNUiRFkCJBAARQAAqoQqHmMac7nNh+OFOc6U55MyurkJss5LnnxLBjx46I/d8xycrSv1HVAFUFFESR8ClDkvmV/zqMJgl7GCQjvh8tf8Pl+hyRlj5OQYKMLYRJc3q20h3G7XNb75AWbFaF0CNuhZnMSgqh7mt1/oXhwx7ShL/UgBhEDWrDLwKoWFQsiCMsUScLrco9z+ChUVk/n/8+UWJQrhv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wOFghqbYzfoL2wyD9/1Oc3n+0gXmTg5XV/aJGHfSx+q26RZQbadP2pq7qzOUNiVvu8hgxgQsKswaPjLzPXOIXgp17+SENCWzyFdSrlJmxx47qmbdt5r5njcKN2Eh9fm0SN6iEGGYXjeOPYUqHfJR2KpDMVfRWe9Dzu7wpqlL94Y4W/+tYqfvCEu4/26VofjcBGDoLk8kj5SJlN8YuE68DQbpft23d5dOceVpV6q43neRivRn1+no2XX2bx9Dn2ewG9nR00CKJ03EOPK7brV+lcBtAX5SPFwEMSm4SehT2S1nUZYKvmaFoQUhbnqG2/ryPNop6OAzl9hxiM8fDzQY52lcekyPk4CvUoqczPcVh5xJRfK1RVB8XBbyi341Zl5SERZXxOoB85uyFvsGdKPYU1nxmy8zbKEZBMwfMBcjtgmFHA1/1eVc9jAs7YoEzSFVAPY+s0vTnmW8ss187QkCVM0KRuGzTEZ65luXThNn/x7Qe8de4Wa3N38Gs7qCfsy2lu76/ywT3D59eb3L/XoLsbcGarz3e/p7z06gKbWxaPBxmTITbYxqNqtJr/MrolpF/LW2yeivnOvgdKSxHr7mH2cm6u2Z4tnaVI+4asuZ91KETh3fNsncQliu/OHqRgJ007bwoPL3ux1jRJRIDcjR7RexUJt4D7bW7vWP7vXzzgv/hGh7eunMLzH/HTT/vc3Yee9bBIdNxVulcpqx6SK1eE5SOgZQhP5fKtENx/wq2nH7B79yGrF84yd2qZeqeB+B4rV15jbuMUtz54j1vv/pr9B1/BoIvoAJsTZ1r26rYwTE7jhy8zso9CG8ejam7GX4SaTY3KFMeLW/VtPC0u0/8TytPx0b9
Response Response Example
{
    "id": "chatcmpl-123",
    "object": "chat.completion",
    "created": 1677652288,
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "\n\nHello there, how may I assist you today?"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 9,
        "completion_tokens": 12,
        "total_tokens": 21
    }
}
Modified at 2025-09-19 02:26:36
Previous
Imagen 3 Generate Images [Native Format] Under Development
Next
Chat interface [chat compatible format]
Built with