API Doc-ElkAPI
  1. Replicate(image)
API Doc-ElkAPI
  • Quick Start
    • Quick Start
    • Must-read for beginners
    • ElkAPI Announcement
  • API Reference
    • Error status code description
    • OpenAI Format
      • Veo3-chat format
      • seedance
      • response
      • generate video
      • image
      • Image Editing (gpt-image-1)
      • embed
      • Realtime
      • Get model list
      • Response ID to obtain results
      • Hunyuan3D
    • Anthropic Format
      • Anthropic Claude
    • Midjourney Image Generation
      • Quick teaching-complete process in one go
      • Task Query
        • pagination query
        • Specify ID to obtain task
      • Submit Imagine task
      • Submit video task
      • Submit editing task
      • Submit Action Task
      • Submit Blend task
      • Submit Describe task
      • Submit Modal
    • Image Generation
      • ideogram(images)
        • Official documentation (updated in real time)
        • Generate 3.0 (illustrated in the text)
        • Reframe 3.0 (Refactoring)
        • Replace Background 3.0
        • Remix 3.0 (Mixed Graph)
        • Edit 3.0 (Edit)
        • Generate (text and image)
        • Remix (mixed image)
        • Upscale (enlarged high-definition)
        • Describe
        • Edit
      • Flux(images)
        • Create Task - General
        • generate image
        • Fine tuning (temporarily unavailable)
        • query task
        • Generate image (replica format)
      • Replicate(image)
        • Create Task - General
          POST
        • Create task - float kontext pro, max
          POST
        • Create task-black forest labs/flux-1.1-pro
          POST
        • Create task-black forest labs/flux-1.1-pro ultra
          POST
        • query task
          GET
        • Create task
          POST
      • Recraft(images)
        • Generate Image
        • Vectorize Image
        • Remove Background
        • Clarity Upscale
        • Create style
        • Generative Upscale
    • Music Generation
      • Suno
        • Set suno version
        • Suno API Scenario Application Guide
        • Generate lyrics
        • Generate music
        • Upload music
        • Song Splicing
        • Full track acoustic separation
        • Single track acoustic separation
        • Create a new Persona
        • Query a single task
        • Generate MP4 MV video
        • Retrieve WAV format files
        • Timing: Lyrics, audio timeline
        • Batch query task
        • Create music using persona_id
      • Udio (not available yet)
        • Generate music
        • Query a single task
    • Video Generation
      • veo3
        • veo3-chat format
        • Submit video generation task
        • Check the video generation status
      • Dream Test
        • seedance
      • runway(video)
        • Official format
          • Generate videos from images
          • Get detailed task information
        • Reverse format
          • Generate (text)
          • Generate (refer to image)
          • Video2video video to video style redrawing
          • Act one emoji transfer
          • Feed - Get Task
      • kling (video)
        • Callback Protocol
        • image expansion
        • generate image
        • text-to-video
        • image-to-video
        • Video extension
        • Virtual try on
        • lip-sync
        • video effects
        • Query task (single)
      • luma (video)
        • Official API format
          • generate video
          • Single query task
      • MiniMax Conch (video)
        • Official Documentation
        • video generation
        • query task
        • File Download
      • PIKA(video)
        • Universal version
          • generate video
          • Query video tasks
        • Generate (reference video/extended video)
        • Generate (refer to image)
        • Generate (text)
        • feed
      • sora
        • Reverse format
          • Create video
          • Generate Video
          • Query video tasks
    • Audio
      • Text to audio conversion
      • audio to text
      • Create translation
  • Integration Guide
    • Best Practices
      • Claude code access instructions
      • ElkAPI Account Balance Query API Usage Instructions
      • Retry logic documentation using ElkAPI and OpenAI's official API
      • Midjorney Calling Best Practices
      • Runway Call Best Practices
    • Application Integration Guide
  • Pricing and Billing
    • About Price
    • About Grouping
  • Help Center
    • Help Center
    • Interface stability
    • Common Misconceptions
    • Use confusion
    • Privacy Policy
    • Terms of Service
  1. Replicate(image)

Create task - float kontext pro, max

POST
https://api.elkapi.com/replicate/v1/models/black-forest-labs/flux-kontext-max/predictions
https://replicate.com/docs/reference/httpNote: To call the following different models, you need to switch the model name after the model in the URL:black-forest-labs/flux-kontext-maxblack-forest-labs/flux-kontext-pro

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
success
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.elkapi.com/replicate/v1/models/black-forest-labs/flux-kontext-max/predictions' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": {
        "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot",
        "input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png",
        "output_format": "jpg",
        "aspect_ratio": "16:9"
    }
}'
Response Response Example
{
    "id": "r4prrv83g9rma0cnh0vbhqhb2g",
    "model": "black-forest-labs/flux-schnell",
    "version": "hidden",
    "input": {
        "prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
    },
    "logs": "",
    "output": [
        "https://replicate.delivery/xezq/QqAPxL5nRxpRClFy7oV3WuDdNnMIAsreRI0tivKvDpBaK1LKA/out-0.webp"
    ],
    "data_removed": false,
    "error": null,
    "status": "processing",
    "created_at": "2025-03-12T02:36:36.098Z",
    "urls": {
        "cancel": "https://api.replicate.com/v1/predictions/r4prrv83g9rma0cnh0vbhqhb2g/cancel",
        "get": "https://api.replicate.com/v1/predictions/r4prrv83g9rma0cnh0vbhqhb2g",
        "stream": "https://stream.replicate.com/v1/files/bcwr-ctgqnxzmppcbcbpvpygk5qnsd4nmxzw2zkofxfcx2cfl2f4pl3fq"
    }
}
Previous
Create Task - General
Next
Create task-black forest labs/flux-1.1-pro
Built with