1. native format
YossAPI.com Docs
YossAPI - English
  • YossAPI - 中文版
  • YossAPI - English
  • YossAPI - Русский
  • YossAPI - 한국어
  • YossAPI - 日本語
  • YossAPI - Español
  • YossAPI - Deutsch
  • introduction
  • Online debugging instructions
  • Make a request
  • Basic introduction to transfer stations
    • API Quick Start Guide
    • Contact customer service
    • Group detailed table
    • Particularity of groupings and price differences
    • How to create a new token for a specified group
    • Agent interface calling address
    • API Key Quota Query Service
    • Free AI Chat Project Navigation
  • Chat
    • ChatGpt interface
      • ChatGPT Audio (Audio)
        • GPT-4o-audio
        • Audio to text whisper-1
        • Audio to text gpt-4o-transcribe
        • Create speech gpt-4o-mini-tts
        • Create translation (not supported)
      • ChatGPT Chat (Chat)
        • Chat completion object
        • Chat completion block object
        • Create chat completion (streaming)
        • Create chat completion (non-streaming)
        • Create chat image recognition (streaming)
        • Create chat picture recognition (streaming) best64
        • Create chat image recognition (non-streaming)
        • Create a chat creation graph (non-streaming)
        • Official Function calling call
        • Official N test
        • List models
        • Create chat function call
        • Create structured output
        • Controlling inference model effort
        • Create chat completion qwen-mt-turbo
        • Create chat completion deepseek v3.1 thinking level (streaming)
        • deepseek-ocr recognition
      • ChatGPT automatic completion (Completions)
        • completion object
        • Creation completed
      • ChatGPT Embeddings
        • embedded object
        • Create embed
      • Web search
        • web search
    • Anthropic Claude interface
      • Chat completion object
      • Chat completion block object
      • native format
        • Create chat completion (streaming)
        • Create function calls (streaming)
        • Create formatted output
        • Create a Thought Chat
        • PDF support
        • PDF supports base64 format
      • chat compatible format
        • Create a Thought Chat
        • Create chat completion (streaming)
        • Create chat completion (non-streaming)
        • Create chat image recognition (streaming)
        • Create chat image recognition (non-streaming)
    • Google Gemini interface
      • native format
        • text generation
          POST
        • text generation-stream
          POST
        • Text generation + thinking-flow
          POST
        • Image generation
          POST
        • Image generation gemini-2.5-flash-image
          POST
        • Image generation gemini-2.5-flash-image controls aspect ratio
          POST
        • Image generation gemini-3-pro-image-preview controls aspect ratio + clarity
          POST
        • Picture editing
          POST
        • Picture understanding
          POST
        • Formatted output
          POST
        • function call
          POST
        • Document understanding
          POST
        • URL context [native format]
          POST
        • code execution
          POST
        • google search
          POST
        • video understanding
          POST
        • URL context
          POST
        • Video understanding-url [native format] under development
          POST
        • Imagen 4 under development
          POST
        • audio understanding
          POST
        • Embeddings
          POST
        • gemini-tts text-to-speech
          POST
        • Text generation gemini-3-pro-preview:generateContent
          POST
      • chat compatible format
        • gemini picture creation interface [chat compatible format]
        • Chat interface [chat compatible format]
        • Chat interface-Thinking 1 [chat compatible format]
        • Chat interface-Thinking 2 [chat compatible format]
        • Image recognition interface [chat compatible format]
        • Chat + read file interface [chat compatible format]
  • Chat(Responses)
    • Comparison between Responses API and Chat API
    • Create model response
    • Create function call
    • Create model response (streaming return)
    • Create model responses (control think length)
    • Create a web search
    • Create model responsive to gpt-5 enabled think
    • Create function call Copy
  • painting model
    • README
    • image object
    • Midjourney
      • Upload pictures
      • Submit Imagine task
      • Query task status based on task ID
      • Query tasks based on ID list
      • Get the seed of the task image
      • Execute Action
      • Submit Blend task
      • Submit Describe task
      • Submit Modal
    • Ideogram
      • Generate 3.0 (Vincent Chart) Generate
      • Generate 3.0 (Picture Editing)Edit
      • Generate 3.0 (Picture Remix) Remix
      • Generate 3.0 (image reconstruction) Reframe
      • Generate 3.0 (replace background) Replace Background
      • ideogram
      • Remix
      • Upscale (enlarge HD)
      • Describe
    • GPT Image Series
      • Create gpt-image-1
      • Edit gpt-image-1
      • Mask gpt-image-1
      • Create gpt-image-1.5
      • Edit gpt-image-1.5
      • Mask gpt-image-1.5
    • Dream painting
      • Create a painting
      • Edit picture
    • 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
        • Flux resolution
        • Access tutorial
        • Create 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-文生图
      • doubao-seedream-4-0-250828-图生图
      • doubao-seedream-4-0-250828-多图生图
      • doubao-seedream-4-5-251128 Vincent picture (plain text input single picture output)
      • doubao-seedream-4-5-251128 Pictures and texts generate pictures (single picture input, single picture output)
      • doubao-seedream-4-5-251128 Multi-image fusion (multi-image input and single image output)
      • doubao-seedream-4-5-251128 Group picture output (multiple picture output)
      • doubao-seedream-4-5-251128 single picture group picture
      • doubao-seedream-4-5-251128 Multiple reference pictures
    • Fal.ai Platform
      • status code
      • Get request results
      • /fal-ai/nano-banana Wen Sheng Tu
      • /fal-ai/nano-banana/edit Image editing
    • Tencent AIGC raw pictures
      • status code
      • Get request results
      • Create task
    • Qwen series
      • qwen-image-max
      • z-image-turbo
      • qwen-image-edit-2509
  • video model
    • veo video generation
      • Video unified format
        • status code
        • Create video
        • Create videos with pictures
        • Query tasks
        • Create video (reference image)
      • OpenAI video format
        • openai creates videos with pictures
        • openai query task
        • openai download video
    • luma video generation
      • Official API format
        • status code
        • Submit video generation task
        • Extended video
      • Query tasks
        • Query a single task
        • Get tasks in batches
    • Runway video generation
      • status code
      • Submit video generation task
      • Query video tasks (free)
    • Dream video generation
      • status code
      • Video unified format
        • status code
        • Create video
        • Query tasks
      • official format
        • Adding
      • Submit video generation task
      • Query video tasks (free)
    • conch video generation
      • status code
      • Submit video generation task
      • Video task status query
      • tusheng video
      • First and last frame video
    • Doubao video generation
      • Vincent video example
      • Tusheng Video-First Frame
      • seedance-lite-first and last frames
      • Tusheng video-base64 encoding
      • seedance-lite-reference picture
      • Query a single task
      • Query video generation task list-default
      • Query video generation task list - search multiple task IDs
      • seedance-1-5-pro-first and last frames
    • sora video generation
      • Unified video format
        • Query tasks
        • Create videos with pictures sora-2
        • Create video sora-2
        • Create video sora-2-pro
        • Create video (with Character)
      • chat format
        • Create video
        • Create videos, with pictures
        • Continuously modify and generate videos
      • OpenAI official video format
        • openai creates videos with pictures
        • Create videos using storyboards
        • openai creates videos with pictures in private mode
        • openai creates video (with Character)
        • openai edit video
        • openai download video
        • openai query task
      • Create a role
    • grok video generation
      • Video unified format
        • status code
        • Create video
        • Query tasks
    • Tongyi Wanxiang video generation
      • Generate video
      • Video query
    • Tencent AIGC video generation
      • status code
      • Create task
      • Get request results
  • GPTs related
    • Introduction
    • GPTs conversation
  • System API
    • Get a list of tokens
    • Add new token
    • Get token support model
    • Get account information
    • modify token
    • search token
    • delete token
  • Vincent Music Suno
    • illustrate
    • parameter
    • Task submission
      • Generate songs (inspiration mode)
      • Generate songs (custom mode)
      • Generate songs (continuation mode)
      • Generate songs (singer style)
      • Generate songs (upload songs for secondary creation)
      • Generate songs (splicing songs)
      • Generate lyrics
      • song splicing
      • Report upload completed
      • Query upload processing status
      • Initialize audio files
      • Request upload authorization
      • s3 upload example
    • Query interface
      • Get tasks in batches
      • Query a single task
      • Get wav
  • Python configuration method
    • Python uses speech to text
    • Python uses text to speech
    • Python uses Embeddings vectorization
    • python calls DALL·E
    • python simple call openai function-calling demo
    • python simple langchain calls openai demo
    • python llama_index configuration
    • Python basic conversation
    • Python uses gpt-4o to identify pictures-local pictures
    • Python uses gpt-4o to identify images
    • Python uses Claude to identify images
    • python library streaming output
    • gpt realtime model call
    • python request request streaming output demo
    • python uses gpt-image-1 to create and edit pictures
    • python openai official library (using AutoGPT, langchain, etc.)
    • python continuous dialogue
  • Rerank reranking model
    • Reorder
  • Kling platform
    • Callback protocol
    • Vincent Video
      • Vincent Video
      • Query task (single)
    • tusheng video
      • tusheng video
      • Query task (single)
    • Omni-Video
      • Omni-Video
      • Query task (single)
    • Multi-picture reference student video
      • Multi-picture reference student video
      • Query task (single)
    • Multimodal video editing
      • Initialize the video to be edited
      • Add video selection
      • Delete video selection
      • Preview selected video
      • multimodal video
      • Query task (single)
    • video extension
      • video extension
      • Query task (single)
    • video effects
      • video effects
      • Query task (single)
    • image generation
      • image generation
      • Query task (single)
    • Multiple reference pictures
      • Multiple reference pictures
      • Query task (single)
    • Omni-Image
      • Omni-Image
      • Query task (single)
    • Expand image
      • Expand image
      • Query task (single)
    • image recognition
      • image recognition
    • digital man
      • digital man
      • Query task (single)
    • Vincent sound effects
      • Vincent sound effects
      • Query task (single)
    • Video sound effects
      • Video sound effects
      • Query task (single)
    • speech synthesis
      • speech synthesis
    • virtual try on
      • virtual try on
      • Query task (single)
    • lip sync
      • face recognition
      • lip sync
      • Query task (single)
    • Custom sounds
      • Custom sounds
      • Query custom timbre (single)
    • motion control
      • motion control
      • Query task (single)
    • main body
      • main body
  • Replicate aggregation platform
    • Access tutorial
    • Flux resolution
    • Query tasks
    • Create task - pass 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 task lucataco/flux-schnell-lora
    • Create task lucataco/flux-dev-lora
    • Create task andreasjansson/stable-diffusion-animation
    • Create task sujaykhandekar/object-removal
    • Create task cjwbw/rembg
    • Create task lucataco/animate-diff
    • Create task ideogram-ai/ideogram-v2-turbo
    • Create task black-forest-labs/flux-kontext-dev
    • Create task minimax/video-01-live
    • Create task minimax/video-01
    • Create task recraft-ai/recraft-v3
    • Create task recraft-ai/recraft-v3-svg
    • Create task black-forest-labs/flux-1.1-pro-ultra
    • Create task black-forest-labs/flux-kontext-pro
    • Create 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 task lucataco/remove-bg
    • Create task riffusion/riffusion
    • Create task black-forest-labs/flux-fill-dev
    • Create task black-forest-labs/flux-fill-pro
    • Create task google/imagen-4-fast
    • Create task google/imagen-4-ultra
    • Create task google/imagen-4
    • Create task prunaai/vace-14b
    • Create task bytedance/seedream-4
  • Fal-ai aggregation platform
    • Access tutorial
    • falai-veo3 video generation
      • /fal-ai/veo3
      • /fal-ai/veo3/fast/image-to-video
      • /fal-ai/veo3/fast
      • /fal-ai/veo3/requests/{request_id}
      • /fal-ai/veo3/image-to-video
    • Get request results
    • /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
    • /fal-ai/qwen-image-edit-plus
    • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
    • /fal-ai/kling-video/v2.5-turbo/pro/image-to-video
    • /fal-ai/flux-lora
    • /fal-ai/flux-lora/image-to-image
    • /fal-ai/flux-lora/inpainting
    • /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
    • /fal-ai/qwen-image-edit-lora
  • php configuration method
    • PHP image editing demo
  • nodejs configuration method
    • nodejs basic conversation
  • Various plug-in/software usage tutorials
    • Codex configuration tutorial
    • N8N workflow using transit API tutorial
    • Gemini CLI transfer station configuration and usage tutorial
    • Claude Code installation and usage tutorial
    • CherryStudio calls CLUDE MCP
    • Cherry Studio configuration tutorial
    • Cherry Studio configuration banana pro 4K and resolution tutorial
    • CherryStudio configures o4 inference level
    • Simple configuration of button workflow from input to obtaining url
    • difyadd 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 Set up gpt translation
    • Browser plug-in ChatGPT Sidebar
    • chatgpt-on-wechat configuration tutorial
    • chatgpt GPT Academic academic optimization configuration gpt tutorial
    • RikkaHub configuration tutorial
    • Coze workflow using transit API tutorial
    • n8n workflow obtains local images and generates video examples
  • Help Center
    • AI return field: Thinking related
    • HTTP status codes and their meanings
    • Self-built image bed API
    • Upload pictures to picture bed
  1. native format

Image generation gemini-2.5-flash-image controls aspect ratio

POST
/v1beta/models/gemini-2.5-flash-image:generateContent
Official documentation: https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn#gemini-image-editing

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数

Header 参数

Body 参数application/json

示例
{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "'Hi, This is a picture of me. Can you add a llama next to me"
        },
        {
          "inline_data": {
            "mime_type": "image/jpeg",
            "data": "iVBORw0KGgoAAAANSUhEUgAABAAAAAKoCAIAAABm4BptAAAAiXpUWHRSYXcgcHJvZmlsZSB0eXBlIGlwdGMAAAiZTYwxDgIxDAT7vOKekDjrtV1T0VHwgbtcIiEhgfh/QaDgmGlWW0w6X66n5fl6jNu9p+ULkapDENgzpj+Kl5aFfa6KnYWgSjZjGOiSYRxTY/v8KIijI/rXyc236kHdAK22RvHVummEN+91ML0BQ+siou79WmMAAAKHaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjUuMCI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOklwdGM0eG1wRXh0PSJodHRwOi8vaXB0Yy5vcmcvc3RkL0lwdGM0eG1wRXh0LzIwMDgtMDItMjkvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZ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7wZB7CmeS2Ev81Jfql36UQ/OVbMObsX3uhYTSv0TtOGG0xRzisOZsDRrbSYOuM1e20kppbE5zn03e+7RykZvAwJ/dbX+wFTxWY9J72NGwTUk5WFwEXu+4JygtK/19VWd7EscCZ2VmKZtb5mOq4xi06rbwbi74oF0o2U8w4PCyxQ0H65MEB1Hdd+NI58/5aA2Py/h5r7m+fJcWU4F+chVM8SUHIlMTpC2Jaft/KEtWhb0S0OVayMoY5UOD4Q9y4q/H0SuyGLVQppZV0sMe0xDGmQXkwAzY3PLWt1A/rysxEs1h+GlR5uuOhA16pllfxWZy905wxJ6xphDkmyX2w77VDFRhMc2VZXJl0UFDZKaAeZjc8nHd7BkPLRP2G2wSOOeMwBuhLcd/4GOVdyjBGdGraYMoZeYrQ9iOj6l+cEC9GFzUS4jUIL0txFL0muZzSvh/ACSGW72pnM2CCXa2MxRFEnrMEd5RTVYoCnlYgjO+vPqG7BJJzLS79qP9VG8bUqa/H/fOv/LUUoWcjWt6tJQLIDgoOA8j+XhvnGGYptPQd7cs0M3RUps+1dGdl0PCudsVFK5JLYzj02QMTUtwDdZnIWF56uGz9ZNsl2gemeyabi8XRwbcyxc667vgZQwCH06RckbV8wPxhGU3GlAY1cTDl1ix6bdqDz9UVKSXwTNjoEmfA6C4or6yfY5+8aGPz0+q0ZfLa345f4bJSck+ie/Nz8EkUl76d2n88IVHTHRToAKNKf6Dfa9icNmR6iysOuAcTo//mBA0/PvC5zaAHwHNS9RCPfvBzgjF10xMtBP

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://yossapi.com/v1beta/models/gemini-2.5-flash-image:generateContent?key=' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "'\''Hi, This is a picture of me. Can you add a llama next to me"
        },
        {
          "in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UFDZKaAeZjc8nHd7BkPLRP2G2wSOOeMwBuhLcd/4GOVdyjBGdGraYMoZeYrQ9iOj6l+cEC9GFzUS4jUIL0txFL0muZzSvh/ACSGW72pnM2CCXa2MxRFEnrMEd5RTVYoCnlYgjO+vPqG7BJJzLS79qP9VG8bUqa/H/fOv/LUUoWcjWt6tJQLIDgoOA8j+XhvnGGYptPQd7cs0M3RUps+1dGdl0PCudsVFK5JLYzj02QMT

返回响应

🟢200success
application/json
Body

示例
{}
修改于 2026-01-22 10:56:22
上一页
Image generation gemini-2.5-flash-image
下一页
Image generation gemini-3-pro-image-preview controls aspect ratio + clarity
Built with