We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic…

🚀 New model available: DeepSeek-V3.1 🚀

black-forest-labs logo

black-forest-labs/

FLUX.1-Kontext-dev

FLUX.1 Kontext [dev] is a 12-billion-parameter image editing model that transforms visuals based on natural language instructions. It allows highly consistent, multi-step edits and is released with open weights under a non-commercial license to empower artists and researchers.

Public
$0.01 x (width / 1024) x (height / 1024) x (iters / 25)
ProjectPaperLicense
black-forest-labs/FLUX.1-Kontext-dev cover image

OpenAI Images Edits HTTP API

This document provides an overview of the DeepInfra-compatible OpenAI image edits API. It allows users to edit images using DeepInfra models.

Image Generation

curl -X POST \
  -H "Authorization: Bearer $DEEPINFRA_TOKEN" \
  -F image=@image.png \
  -F n=1 \
  -F size=1024x1024 \
  -F model=black-forest-labs/FLUX.1-Kontext-dev \
  https://api.deepinfra.com/v1/openai/images/edits 
copy

The API returns a JSON object containing the generated image(s).

Example Response

{
  "created": 1740418043,
  "data": [
    {
      "revised_prompt": null,
      "b64_json": "/9j/4AAQS..."
    }
  ]
}
copy

Input Schema

Output Schema