Images

Submits an asynchronous image-to-image (editing) job to the fal.ai queue and returns the queued job immediately. Transforms one or more source images according to a text prompt — restyle a product photo, change a background, combine references. Poll GET /v1/jobs/{id} for status and results. Credits are charged only when the job completes successfully.

post/images/edit

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

ImageEditRequest required
model, string

A quality tier (fast, balanced, quality) or any fal.ai image-to-image endpoint id. Prefer a tier — it tracks the best current model for that price point. Defaults to fal-ai/nano-banana/edit.

input, object required

Model-specific input, forwarded to fal verbatim except for files: a base64 data URI (up to 10 MB) is stored privately and replaced by a crevio://files/… reference, and references and file_… ids reach fal as links that expire after 24 hours. prompt and a source image (image_url or image_urls) are required. For a featured model either image field is accepted and normalized to whichever that model expects; other models receive it as sent.

Example request

{
  "model": "fast"
}

Response

Edit job queued

ProviderJob required
id, string required
object, string required
type, string required
status, 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled' required
model, string required
progress, integer required
input, object required
result, object nullable required
error, string nullable required
error_code, string nullable required
credits_used, integer nullable required
provider_request_id, string nullable required
created_at, string date-time required
started_at, string date-time nullable required
completed_at, string date-time nullable required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    3 more changes in this revision