Skip to content

Fibo 2.0 Edit

Instruction-based image editing from up to four images: background swaps, product restaging and masked edits. Bria says it is trained on licensed data.

  • by Bria
  • Image
  • $0.04/image
On this page

1.Call

OpenAI-compatible image generation; images are returned as cdn.ewest.ai URLs. Every response carries an x-request-id trace ID.

curl https://api.ewest.ai/v1/images/edits \
  -H "Authorization: Bearer $EWEST_KEY" \
  -F model=ewest/fibo-2-edit \
  -F prompt="Put the product on a marble table in soft morning light" \
  -F image=@product.png \
  -F mask=@mask.png   # optional: white = change, black = keep, same size as the image

# or public https URLs in a JSON body: the image to edit first, then up to 3 references
#   -H "Content-Type: application/json" \
#   -d '{"model": "ewest/fibo-2-edit", "prompt": "Place the bottle from <image_2> into <image_1>", "image_urls": ["https://example.com/room.png", "https://example.com/bottle.png"]}'

# → {"data": [{"url": "https://cdn.ewest.ai/img/…"}]}

2.Authentication

Send your API key in the Authorization: Bearer header, as the examples above do (clients built for the Anthropic API can use x-api-key). Create keys under API keys. Keep the key on your server, never in browser code. More in the authentication guide.

3.Files

This model edits images and has no text-to-image call. Send 1 to 4 public https URLs in image_urls (the image to edit first, then references), or upload the files as multipart image fields, with a prompt, to POST /v1/images/edits. For a masked edit of one image add mask_url or a multipart mask file. See Files for limits and formats.

4.Schema

What you send and what comes back, for ewest/fibo-2-edit. The output tables are read from the API's OpenAPI description.

Input

POST /v1/images/generations
  • modelstringRequired
    The model id, ewest/fibo-2-edit.
  • promptstringRequired
    The edit to make, e.g. "make the jacket red". Up to 10,000 characters.
  • aspect_ratiostringOptional
    Shape of the result when you send two or more images (one image keeps its own shape). One of: 1:1, 1:2, 1:3, 1:4, 1:5, 2:1, 2:3, 3:1, 3:2, 3:4, 4:1, 4:3, 4:5, 5:1, 5:4, 9:16, 9:21, 10:16, 16:9, 16:10, 21:9.
  • image_urlsarrayRequired
    1 to 4 public https image URLs: the image to edit first, then references (the prompt can call them <image_1>, <image_2>, ...). Or upload the file as a multipart image field. Send to POST /v1/images/edits.
  • mask_urlstringOptional
    Public https URL of a mask for a single-image edit (or upload a multipart mask file): white where the model may change the image, black where it stays. Same pixel size as the image; PNG, JPEG or WebP.
  • response_formatstringOptionaldefault url
    url (on cdn.ewest.ai, kept 7 days) or b64_json.

Output

Returns an image. POST /v1/images/edits answers 200: The edited images.

  • createdintegerSometimes
    Unix seconds when the images were created.
  • dataarray of objectAlways
    The generated images, in order.
  • data[].urlstring (uri)Always
    Link to the image, on cdn.ewest.ai, kept for 7 days.
  • data[].b64_jsonstring (base64)Sometimes
    The image bytes, base64-encoded; only with response_format: b64_json.
  • data[].revised_promptstring or nullSometimes
    The prompt as the model rewrote it, where it does that; otherwise null or absent.
  • data[].widthintegerSometimes
    Width of the image in pixels; present for models that report the size of the stored image.
  • data[].heightintegerSometimes
    Height of the image in pixels; present together with width.
  • backgroundstring or nullSometimes
    Background setting reported by the model, if any.
  • output_formatstring or nullSometimes
    File format reported by the model, if any.
  • qualitystring or nullSometimes
    Quality level reported by the model, if any.
  • sizestring or nullSometimes
    Size reported by the model, if any.
  • usageobjectSometimes
    Token usage, for models that bill by tokens; zeros otherwise.
  • usage.total_tokensintegerSometimes
    Input plus output tokens.
  • usage.input_tokensintegerSometimes
    Tokens in the input.
  • usage.output_tokensintegerSometimes
    Tokens in the output.
  • usage.input_tokens_detailsobjectSometimes
    Breakdown of the input tokens.
  • usage.input_tokens_details.image_tokensintegerSometimes
    Tokens from input images.
  • usage.input_tokens_details.text_tokensintegerSometimes
    Tokens from the prompt.

Sample response

{
  "created": 1793530277,
  "data": [
    {
      "url": "https://cdn.ewest.ai/img/2026/11/01/7hq2xk9mpz.png"
    }
  ]
}

5.Details

Aspect ratios
1:1, 1:2, 1:3, 1:4, 1:5, 2:1, 2:3, 3:1, 3:2, 3:4, 4:1, 4:3, 4:5, 5:1, 5:4, 9:16, 9:21, 10:16, 16:9, 16:10, 21:9
Image editing
Yes, up to 4 input images
Output
Image URL on cdn.ewest.ai (kept 7 days)