1. Replicate aggregation platform
APISPACE
  • apispace
    • Root Directory
      • Make a Request
      • API Quick Start Guide
      • Chat
        • ChatGpt interface
          • ChatGPT Audio
            • GPT-4o-audio
            • Whisper-1 audio-to-text
            • audio to text gpt-4o-transcribe
            • Create a voice GPT-4O-Mini-TTS
            • Create translation (not supported)
          • ChatGPT (Chat)
            • Create chat autocomplete (streaming)
            • Create chat autocomplete (non-stream)
            • Create a chat image recognition feature (streaming).
            • Create a chat image recognition feature (streaming) best64
            • Create a chat image recognition feature (non-stream).
            • Create chat-generating images (non-stream).
            • Official Function calling call
            • Official N test
            • List the models
            • Create chat function call
            • Create structured output
            • Controlling the effort level of the inference model
            • Create chat autocomplete qwen-mt-turbo
          • ChatGPT auto-completion (Completions)
            • Creation complete
          • ChatGPT Embeddings
            • Create an embed
          • Web Search
            • Create chat autocomplete in DeepSeek v3.1 (streaming).
        • Anthropic Claude Interface
          • native format
            • PDF supports base64 format.
            • Internet search
          • Create chat autocomplete (streaming)
          • web search
          • Create a Thinking Chat
          • Create function calls (streaming)
          • Create chat autocomplete (streaming)
          • Create formatted output
          • Create chat autocomplete (non-stream)
          • Create a Thinking Chat
          • PDF support
          • deepseek-ocr recognition
        • Google Gemini Interface
          • native format
            • Chat interface [native format]
            • Text generation
            • Chat Interface - Stream [Native Format]
            • Text generation - stream
            • Text generation - stream
            • Image creation [native format]
            • Text generation + thinking-flow
            • Image generation
            • Image editing [native format] gemini-2.5-flash-image-preview
            • Image generation gemini-2.5-flash-image
            • Image generation gemini-2.5-flash-image control aspect ratio
            • Image generation: Gemini 3 Pro Image Preview - Controlling Aspect Ratio and Sharpness
            • Image editing
            • Image Understanding
            • Chat API - Read Webpages [Native Format] Under Development
            • Formatted output
            • function call
            • Document Understanding
            • Document Understanding
            • URL context [native format]
            • Video understanding - URL [Native format] Under development
            • Code execution
            • google search
            • google search
            • Video Understanding
            • Video Understanding
            • Imagen 4 under development
            • URL context
            • Video understanding - URL [Native format] Under development
            • URL context [native format]
            • Audio understanding
            • Video understanding - URL [Native format] Under development
            • Embeddings
            • Text generation + thinking-flow
            • Text generation gemi-3-pro-preview:generateContent
            • gemini-tts Text-to-Speech
            • Text generation - stream
            • TTS (Text-to-Speech)
            • Imagen generates images
            • Text embedding
          • Chat compatible format
            • gemini image creation interface [chat compatible format]
            • Chat interface [chat compatible format]
            • Create a chat image recognition feature (streaming).
            • Create a chat image recognition feature (non-stream).
            • Text embedding [chat-compatible format]
        • ChatGpt API
          • ChatGPT Chat (Chat)
            • Chat Completion Object
            • Chat Completion Chunk Object
          • ChatGPT Completion (Completions)
            • Completion Object
          • ChatGPT Embedding (Embeddings)
            • Embedding Object
        • Anthropic Claude API
          • Chat Completion Object
          • Chat Completion Chunk Object
      • Chat (Responses)
        • Responses API vs Chat API Comparison
        • Create Model Response
        • Create function call
        • Create a model response (streaming return)
        • Create a model response (controlling the length of thought)
        • Create a web search
        • Creating a model response GPT-5 enables thinking.
        • Create function call Copy
      • Painting Model
        • Midjourney
          • Upload Image
          • Submit Imagine task
          • Query task status by task ID
          • Search for tasks based on the ID list
          • Get the seed for the task image
          • Execute Action
          • Submit Blend task
          • Submit Describe task
          • Submit Shorten task
          • Submit Modal
          • Submit swap_face task
        • Ideogram
          • Generate 3.0 (Text-based Image Generator)
          • Generate 3.0 (Image Editing)
          • Generate 3.0 (Image Remix)
          • Generate 3.0 (Image Reframe)
          • Generate 3.0 (Replace Background)
          • ideogram (or ideogram)
          • Remix (mixing graph)
          • Upscale (enlarge to high definition)
          • Describe
        • GPT Image-1
          • Create gpt-image-1
          • Edit gpt-image-1
          • mask gpt-image-1
        • FROM 3
          • Create gpt-image-1.5
        • FLUX series
          • GPT compatible format
            • Creating paintings
            • Edit gpt-image-1.5
          • Replicate official format
            • Create task black-forest-labs/flux-kontext-dev
            • Query task
          • Fal.ai official format
            • 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-tree/flux-pro/context
            • /fal-ai/flux-pro/kontext/text-to-image
            • /fal-ai/flux-pro/kontext/max
            • /fal-ai/flux-pro/kontext/max/multi
            • FLUX.1 Context [Pro]
            • FLUX.1 Kontext [Multi] (Experimental multi-image editing)
            • FLUX.1 Kontext [Max]
            • FLUX.1 Kontext [Max] Text to Image Converter
            • FLUX.1 Kontext [Max Multi] (Experimental multi-image editing)
        • Doubao series
          • Create DALL·E 3
          • Flux creation (OpenAI dall-e-3 format)
          • doubao-seedream-3-0-t2i-250415
          • doubao-seededit-3-0-i2i-250628
          • doubao-seedream-4-0-250828-文生图
          • doubao-seedream-4-5-251128 Text-based image (plain text input, single image output)
          • doubao-seedream-4-5-251128 Image and text output (single image input, single image output)
          • doubao-seedream-4-5-251128 Multi-image fusion (multiple image inputs, single image output)
          • doubao-seedream-4-5-251128 Image set output (multiple images)
        • Fal.ai platform
          • /fal-ai/nano-banana (Text by Wen Sheng Tu)
          • /fal-ai/nano-banana/edit Image editing
        • Qwen-Image Series
          • doubao-seedream-4-0-250828-raw image
        • Dream Painting
          • doubao-seedream-4-0-250828-Multiple raw images
          • Mask gpt-image-1.5
        • GPT Image Series
          • Edit Image
          • Flux editing (OpenAI dall-e-3 format)
          • doubao-seedream-4-5-251128 Single image/group of images
          • doubao-seedream-4-5-251128 Multiple reference images for group photos
        • Tencent AIGC raw images
          • Get the request result
          • Create task
        • Qwen series
          • qwen-image-max
          • z-image-turbo
          • qwen-image-edit-2509
      • Video Model
        • VEO video generation
          • Unified video format
            • Create video
            • Create a video with images
            • Query task
          • OpenAI video format
            • Create videos with images using OpenAI.
            • OpenAI query task
            • OpenAI video download
        • Luma video generation
          • Official API format
            • Submit video generation task
            • Extended video
          • Query task
            • Query a single task
            • Batch retrieval tasks
        • Kling Quick & Easy
          • Image generation
          • Wensheng Video
          • Virtual try-on
          • Lip-syncing
          • Video extension
          • Video effects
          • Image and video
          • Multiple images and reference videos
          • Search for tasks (free)
        • Runway video generation
          • Submit video generation task
          • Search for video tasks (free)
          • Chat Interface - Thoughts 1 [Chat Compatible Format]
        • Immediate Dream Video Generation
          • Unified video format
          • Official format
          • Submit video generation task
          • Search for video tasks (free)
        • Conch video generation
          • Submit video generation task
          • Video task status query
          • Image and video
          • First and last frame video
        • Doubao video generation
          • Wensheng Video Example
          • Image-based video - first frame
          • seedance-lite-first and last frames
          • Image-based video - base64 encoded
          • Seedance-Lite Reference Image
          • 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
          • seedance-1-5-pro
        • Sora video generation
          • Asynchronous format
            • Create video
            • Query task
            • Creating a video (see reference image)
          • chat format
            • Continuous modification to generate video
          • Unified video format
            • Query task
            • Create a video with images using sora-2
            • Create video sora-2
            • Create video sora-2-pro
            • Create a video (with Character)
          • OpenAI official video format
            • Create videos with images using OpenAI.
            • Create videos using storyboards
            • OpenAI video creation with private image mode
            • Create videos with Character using OpenAI.
            • OpenAI video editing
            • OpenAI video download
            • OpenAI query task
          • Create a character
        • Tongyi Wanxiang Video Generation
          • Generate video
          • Video search
        • Grok video generation
          • Unified video format
            • Create video
            • Query task
        • Tencent AIGC Video Generation
          • Create task
          • Get the request result
      • GPTs related
        • GPTs Dialogue
        • Chat Interface - Reflections 2 [Chat Compatible Format]
        • Image recognition interface [chat compatible format]
        • Chat + file reading interface [chat compatible formats]
      • System API
        • Get Token List
        • New token
        • Get Token Support Model
        • Get account information
        • Modify token
        • Search token
        • Delete token
        • Search token
        • Get token usage
      • Suno Music
        • Task Submission
          • Generate a song (Inspiration Mode)
          • Generate a song (custom mode)
          • Generate a song (continuation mode)
          • Generate songs (singer style)
          • Generate a song (upload a song for secondary creation).
          • Generate a song (compose a song)
          • Generate lyrics
          • Song splicing
          • Persona: Create Singer Style
          • Report uploaded
          • Query upload processing status
          • Initialize audio file
          • Request to upload authorization
          • S3 upload example
          • Scene 1: Inspiration Mode
          • Scenario 2: Custom lyrics and song title
          • Scene 3: Instrumental Music. Custom
        • Query Interface
          • Batch retrieval tasks
          • Query a single task
          • Get WAV
          • Timing: Lyrics, Audio Timeline
          • Get scene details
        • Create video
        • Create a video with images
      • Rerank Reordering Model
        • Reordering
      • Replicate aggregation platform
        • Query task
          GET
        • Create a task - via the model version (predictions)
          POST
        • Create task stability-ai/stable-diffusion
          POST
        • Create task stability-ai/sdxl
          POST
        • Create task stability-ai/stable-diffusion-inpainting
          POST
        • Create task stability-ai/stable-diffusion-img2img
          POST
        • Create task lucataco/flux-schnell-lora
          POST
        • Create task lucataco/flux-dev-lora
          POST
        • Create task andreasjansson/stable-diffusion-animation
          POST
        • Create task sujaykhandekar/object-removal
          POST
        • Create task cjwbw/rembg
          POST
        • Create task lucataco/animate-diff
          POST
        • Create task ideogram-ai/ideogram-v2-turbo
          POST
        • Create task black-forest-labs/flux-kontext-dev
          POST
        • Create task minimax/video-01-live
          POST
        • Create task minimax/video-01
          POST
        • Create a quest recraft-ai/recraft-v3
          POST
        • Create a quest recraft-ai/recraft-v3-svg
          POST
        • Create the task black-forest-labs/flux-1.1-pro-ultra
          POST
        • Create task black-forest-labs/flux-kontext-pro
          POST
        • Create task black-forest-labs/flux-kontext-max
          POST
        • Create task flux-kontext-apps/multi-image-kontext-max
          POST
        • Create task flux-kontext-apps/multi-image-kontext-pro
          POST
        • Create task lucataco/remove-bg
          POST
        • Create task lucataco/remove-bg
          POST
        • Create a task riffusion/riffusion
          POST
        • Create task black-forest-labs/flux-fill-dev
          POST
        • Create task black-forest-labs/flux-fill-pro
          POST
        • Create task google/imagen-4-fast
          POST
        • Create task google/imagen-4-ultra
          POST
        • Create task google/imagen-4
          POST
        • Create task prunaai/vace-14b
          POST
        • Create task byendance/seedream-4
          POST
      • Help Center
        • AI Return Fields: Thinking Related
        • HTTP Status Codes and Their Meanings
        • Self-hosted Image Hosting API
        • Upload images to image hosting service
      • Fal-ai aggregation platform
        • 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 the request result
        • /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
      • Kling platform
        • Wensheng Video
          • Wensheng Video
          • Query task (single)
        • Image and video
          • Image and video
          • Query task (single)
        • Omni-Video
          • Omni-Video
          • Query task (single)
        • Multiple images and reference videos
          • Multiple images and reference videos
          • Query task (single)
        • Multimodal video editing
          • Initialize the video to be edited
          • Add video selection area
          • Video selection area deletion
          • Preview of selected video area
          • 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 images
          • Multiple reference images
          • Query task (single)
        • Omni-Image
          • Omni-Image
          • Query task (single)
        • Expanding the map
          • Expanding the map
          • Query task (single)
        • Image recognition
          • Image recognition
        • Digital Human
          • Digital Human
          • Query task (single)
        • Vincent sound effects
          • Vincent sound effects
          • Query task (single)
        • Video audio effects
          • Video audio effects
          • Query task (single)
        • Speech Synthesis
          • Speech Synthesis
        • Virtual try-on
          • Virtual try-on
          • Query task (single)
        • Lip-syncing
          • Facial recognition
          • Lip-syncing
          • Query task (single)
        • Custom tone
          • Custom tone
          • Query custom tone (single)
          • Custom tone
          • Search official sound
          • Delete custom tone
        • motion control
          • motion control
          • Query task (single)
        • main body
          • main body
      • Conch Minimax Platform
        • Create Asynchronous Speech Synthesis Task V2
        • Synchronous Speech Synthesis V2
        • Text, image, and video generation tasks
        • Uploaded replica audio
        • Upload sample audio
        • First and last frames generate video
        • Rapid sound reproduction
        • Query video generation task status
        • Search (for video downloading, asynchronous audio downloading)
        • Text synthesis
        • Query the status of the speech generation task
        • Tone Design
      • Vidu platform video generation, image generation, and audio generation.
        • Create a video task
        • Creating Image-Based Video Tasks
        • Create image generation task
        • Create a Wensheng audio task
        • Speech Synthesis
        • Create a reference video task
        • Create first and last frame video task
        • Get the request result
      • Python configuration methods
      • PHP configuration method
      • Node.js configuration method
      • Tutorials on using various plugins/software
      • Image Models
        • README
        • Image Object
        • FLUX Series
          • Replicate Official Format
            • Flux Resolution
            • Integration Tutorial
          • Fal.ai Official Format
            • Integration Tutorial
        • Fal.ai Platform
          • Status Codes
        • Tencent AIGC Image Generation
          • Status Codes
      • Video Models
        • veo Video Generation
          • Video Unified Format
            • Status Codes
        • luma Video Generation
          • Official API Format
            • Status Codes
        • Kling Kuaishou Kling
          • Callback Protocol
        • Runway Video Generation
          • Status Codes
        • Jimeng Video Generation
          • Status Codes
          • Video Unified Format
            • Status Codes
          • Official Format
            • Adding
        • Hailuo Video Generation
          • Status Codes
        • grok Video Generation
          • Video Unified Format
            • Status Codes
        • Tencent AIGC Video Generation
          • Status Codes
      • GPTs Related
        • Introduction
      • Text-to-Music Suno
        • Description
        • Parameters
      • Replicate Aggregation Platform
        • Integration Tutorial
        • Flux Resolution
      • Fal-ai Aggregation Platform
        • Integration Tutorial
      • Kling Platform
        • Callback Protocol
      • vidu Platform Video Generation, Image Generation, Audio Generation
        • Status Codes
      • Python Configuration Methods
        • python openai official library (using AutoGPT, langchain, etc.)
        • python continuous conversation
        • python using speech-to-text
        • python using text-to-speech
        • python using Embeddings vectorization
        • python calling DALL·E
        • python simple call openai function-calling demo
        • python simple langchain call openai demo
        • python llama_index configuration
        • Python Basic Conversation
        • Python using gpt-4o to recognize images - local images
        • Python using gpt-4o to recognize images
        • Python using Claude to recognize images
        • python library streaming output
        • gpt realtime model call
        • python request streaming output demo
        • python using gpt-image-1 to create and edit images
      • php Configuration Methods
        • php image editing demo
      • nodejs Configuration Methods
        • nodejs basic conversation
      • Various Plugins/Software Usage Tutorials
        • Gemini CLI Relay Station Configuration and Usage Tutorial
        • Claude Code Installation and Usage Tutorial
        • CherryStudio calling cluade MCP
        • Cherry Studio Configuration Tutorial
        • CherryStudio configuring o4 reasoning level
        • dify 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 Translate setup gpt translation
        • Browser plugin ChatGPT Sidebar
        • chatgpt-on-wechat configuration tutorial
        • chatgpt GPT Academic academic optimization configuration gpt tutorial
        • N8N Workflow Using Relay API Tutorial
        • Codex Configuration Tutorial
        • RikkaHub Configuration Tutorial
        • coze workflow using relay API tutorial
        • Cherry Studio configuring banana pro 4K and resolution tutorial
        • Coze workflow simple configuration from input to getting url
        • n8n workflow example of getting local image to generate video
        • OpenClaw Clawdbot custom relay station configuration tutorial
        • opencode configuration tutorial
        • OpenClaw latest version custom relay station configuration tutorial
  1. Replicate aggregation platform

Create task black-forest-labs/flux-kontext-dev

POST
/replicate/v1/models/black-forest-labs/flux-kontext-dev/predictions
Official documentation: https://replicate.com/black-forest-labs/flux-kontext-dev

Request

Header Params

Body Params application/json

Example
{
"input": {
"prompt": "Change the car color to red, turn the headlights on",
"go_fast": true,
"guidance": 2.5,
"input_image": "https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg",
"aspect_ratio": "match_input_image",
"output_format": "jpg",
"output_quality": 80,
"num_inference_steps": 30
}
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/replicate/v1/models/black-forest-labs/flux-kontext-dev/predictions' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"input": {
"prompt": "Change the car color to red, turn the headlights on",
"go_fast": true,
"guidance": 2.5,
"input_image": "https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg",
"aspect_ratio": "match_input_image",
"output_format": "jpg",
"output_quality": 80,
"num_inference_steps": 30
}
}'

Responses

🟢200success
application/json
Bodyapplication/json

Example
{
"id": "tpdf40dypdrma0cram394vvzkg",
"model": "black-forest-labs/flux-kontext-dev",
"version": "hidden",
"input": {
"aspect_ratio": "match_input_image",
"go_fast": true,
"guidance": 2.5,
"input_image": "https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg",
"num_inference_steps": 30,
"output_format": "jpg",
"output_quality": 80,
"prompt": "Change the car color to red, turn the headlights on"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-07-29T07:12:42.163Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/tpdf40dypdrma0cram394vvzkg/cancel",
"get": "https://api.replicate.com/v1/predictions/tpdf40dypdrma0cram394vvzkg",
"stream": "https://stream.replicate.com/v1/files/bcwr-6rywfvqq3376h7243k7xrgtnkaqpwiogzgh7kcehtx7kz3nre6fq",
"web": "https://replicate.com/p/tpdf40dypdrma0cram394vvzkg"
}
}
Modified at 2026-09-23 08:28:57
Previous
Create task ideogram-ai/ideogram-v2-turbo
Next
Create task minimax/video-01-live
Built with