> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Flux Dev Image to Image

> Edit one source image using a text prompt with PNG or JPEG output.

## Submit a Task

Send `model: "blackforestlabs/flux/dev/image-to-image"` and an `input` object to `POST /api/generate/submit`. Authenticate with `Authorization: Bearer VIDGO_API_KEY`.

* `prompt`: Required string. Describe the image or editing instructions using at least one character after trimming.
* `image_urls`: Required array containing one public HTTP(S) source-image URL. The source image guides the edited output.
* `n`: Positive integer specifying the output image count, default `1`.
* `output_format`: `png` or `jpeg`, default `png`.

### Canvas Parameter

`size` defines the text-to-image canvas and defaults to `1:1`. Image-to-image generation uses the source image to guide the output. The request example supplies the source image, prompt, image count, and output format.

## Retrieve Images

The submission response returns `data.task_id`. Use [Query Task Status](/api-manual/task-management/status) to follow the task through `not_started`, `running`, `finished`, or `failed`.

Read image URLs from `data.files[].file_url` when the status is `finished`. For `failed`, read `data.error_message`.

You can provide a top-level `callback_url` to receive the terminal result through a [webhook](/api-manual/task-management/webhooks).

## Verified Example

This example was generated through the Vidgo test API. The source and result images are hosted on the Vidgo CDN.

![Source image](https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/01/input.png)

![A Warmer Reading Room](https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/01/output.png)

```json theme={null}
{
  "code": 200,
  "data": {
    "task_id": "I0RYI5JVOJC6CR8I",
    "status": "finished",
    "files": [
      {
        "file_url": "https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/01/output.png",
        "file_type": "image"
      }
    ],
    "created_time": "2026-09-25T11:22:15",
    "error_message": null,
    "progress": 100
  }
}
```


## OpenAPI

````yaml api-manual/image-series/blackforestlabs-flux-dev-image-to-image.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Flux Dev Image to Image
  description: Flux Dev Image to Image API.
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Flux Dev
      summary: Submit Flux Dev Image to Image Task
      operationId: submitFluxDevImageToImage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              default:
                summary: A Warmer Reading Room
                value:
                  model: blackforestlabs/flux/dev/image-to-image
                  input:
                    prompt: >-
                      Reimagine this same reading room as a warm and inviting
                      evening interior. Retain the principal perspective, the
                      large window on the left, the central rectangular table
                      and chairs, and the low shelves on the right. Replace the
                      cold concrete wall finish with warm light-oak paneling and
                      the floor with natural oak planks; give the chairs
                      comfortable muted rust-colored upholstery. Add subtle warm
                      reading light above the table and a gentle glow along the
                      shelves. Through the existing window, show the soft blue
                      light of dusk. Realistic architectural photography with
                      convincing wood grain, fabric texture and balanced warm
                      interior light against cool outdoor light. The room
                      remains simple, unoccupied and clearly related to the
                      original layout. No text, logos, commercial styling or
                      watermark.
                    'n': 1
                    output_format: png
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/01/input.png
              image-to-image-02:
                summary: Coastal Painted Study
                value:
                  model: blackforestlabs/flux/dev/image-to-image
                  input:
                    prompt: >-
                      A bold Fauvist oil painting on rough linen canvas of a
                      golden dog running on a beach. PAINTING, not a photograph.
                      Broad angular strokes of ochre, terracotta and cream
                      construct the complete dog in SIDE PROFILE facing RIGHT,
                      tail to the LEFT; keep the overall dog silhouette and
                      beach subject from the reference. Four natural legs in a
                      running stride. The entire animal fits comfortably in the
                      lower half of the portrait canvas. Build the sea and sky
                      from large flat patches of muted teal, pale blue and warm
                      grey. Scraped palette-knife impasto, thick raised paint
                      ridges, broken color and visible bristle marks across
                      every part of the composition, simplified shapes,
                      expressive brushwork, deliberately painterly edges. An
                      unframed full-bleed fine-art painting with no decorative
                      border, no lettering, no signature, no watermark.
                    'n': 1
                    output_format: jpeg
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/02/input.png
              image-to-image-03:
                summary: Autumn Rain in the Courtyard
                value:
                  model: blackforestlabs/flux/dev/image-to-image
                  input:
                    prompt: >-
                      Use the supplied photograph as the fixed composition for a
                      seasonal weather variation. Show the SAME entire
                      dark-green step-through bicycle from the SAME SIDE VIEW:
                      front wheel and wicker front basket on the LEFT, rear
                      wheel and saddle on the RIGHT, two wheels side by side and
                      both fully visible. Keep the pale plaster wall directly
                      behind the bicycle, the wooden gate on the far LEFT and
                      the leafy tree above the wall on the RIGHT. Preserve the
                      original wide camera position, lens perspective, bicycle
                      position and scale. Change only the weather, ground
                      moisture and foliage: soft overcast autumn daylight, fine
                      rain, wet stone paving with small puddles, scattered
                      russet leaves, and amber foliage on the existing tree.
                      Realistic gentle reflections, naturally aged materials and
                      subtle rain streaks. A quiet residential courtyard, not an
                      alley. Do not rotate the bicycle or move the camera. No
                      rear view, no people, no extra bicycles, no text, no
                      logos, no watermark.
                    'n': 1
                    output_format: png
                    image_urls:
                      - >-
                        https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/03/input.png
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
              example:
                code: 200
                data:
                  task_id: I0RYI5JVOJC6CR8I
                  status: running
                  created_time: '2026-09-25T11:22:15'
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          enum:
            - blackforestlabs/flux/dev/image-to-image
        callback_url:
          type: string
          format: uri
          description: Optional webhook callback URL.
        input:
          type: object
          required:
            - image_urls
            - prompt
          description: Parameters for single-image editing.
          properties:
            prompt:
              type: string
              description: >-
                Describe the image to generate or the changes to make. Provide
                at least one character after trimming.
              minLength: 1
              example: >-
                Reimagine this same reading room as a warm and inviting evening
                interior. Retain the principal perspective, the large window on
                the left, the central rectangular table and chairs, and the low
                shelves on the right. Replace the cold concrete wall finish with
                warm light-oak paneling and the floor with natural oak planks;
                give the chairs comfortable muted rust-colored upholstery. Add
                subtle warm reading light above the table and a gentle glow
                along the shelves. Through the existing window, show the soft
                blue light of dusk. Realistic architectural photography with
                convincing wood grain, fabric texture and balanced warm interior
                light against cool outdoor light. The room remains simple,
                unoccupied and clearly related to the original layout. No text,
                logos, commercial styling or watermark.
            image_urls:
              type: array
              items:
                type: string
                format: uri
              minItems: 1
              maxItems: 1
              description: Source image URL for image-to-image editing. Provide one image.
              example:
                - >-
                  https://cdn.vidgo.ai/apis/models/blackforestlabs/flux/dev/image-to-image/v1/01/input.png
            size:
              type: string
              description: >-
                Text-to-image output canvas. Presets: 1:1 (512×512), 1:1 HD
                (1024×1024), 4:3 (1024×768), 3:4 (768×1024), 16:9 (1024×576),
                9:16 (576×1024). Custom WIDTHxHEIGHT dimensions are positive
                integers. Image-to-image output is guided by the source image.


                Use a preset (`1:1`, `1:1 HD`, `4:3`, `3:4`, `16:9`, `9:16`) or
                custom `WIDTHxHEIGHT` dimensions.
              default: '1:1'
              pattern: ^(?:1:1|1:1\ HD|4:3|3:4|16:9|9:16|(?:\d+x\d+))$
            'n':
              type: integer
              description: Number of output images.
              default: 1
              example: 1
              minimum: 1
            output_format:
              type: string
              description: Output image format.
              enum:
                - jpeg
                - png
              default: png
              example: png
          additionalProperties: false
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
            status:
              type: string
              enum:
                - not_started
                - running
                - failed
            created_time:
              type: string
              format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Use `Authorization: Bearer VIDGO_API_KEY`.'

````