Meldport
recraft · Image

Recraft V4 Pro

Image model · Available upstream

Advanced design-focused image generation with enhanced control and fidelity

Generation is available through the published Meldport configurations below. Review the exact quote before submitting.

Model ID
recraft-v4-pro
Released
Feb 17, 2026
Billing unit
Generated output

Meldport generation prices

Recraft V4 Pro

API configuration ID7e175eab-f424-4965-8d9b-c20d5be2aa07

text to image

GenerationMeldport $0.3/ generation

1 output

API request and parameters

Use images:generate on your API key. This configuration runs text to image and returns image/jpeg.

This configuration does not require an uploaded image. Choose a different configuration ID to change the workflow or output settings. Send only options listed below.

These output settings are included in this configuration. Select another configuration ID to change them. Do not add them to options.

generation_parametersJSON
{
  "width": 2048,
  "height": 2048
}

This configuration has no additional request options.

Replace the prompt and set a unique MELDPORT_IDEMPOTENCY_KEY for this operation. The example quotes the request and then creates one paid job. Read the billing rules before accepting variable charges.

generate.mjsJavaScript
const api = "https://api.meldport.com";
const key = process.env.MELDPORT_API_KEY;
const idempotencyKey = process.env.MELDPORT_IDEMPOTENCY_KEY;
if (!key || !idempotencyKey) throw new Error("Set your API key and a unique operation ID first.");

async function post(path, body) {
  const response = await fetch(api + path, {method: "POST",
    headers: {Authorization: `Bearer ${key}`, "Content-Type": "application/json"},
    body: JSON.stringify(body)});
  const result = await response.json();
  if (!response.ok) throw new Error(JSON.stringify(result.error));
  return result;
}

const request = {
  "configuration_id": "7e175eab-f424-4965-8d9b-c20d5be2aa07",
  "prompt": "Replace with your prompt or speech script.",
  "options": {},
  "input_asset_ids": []
};
const {data: quote} = await post("/v1/media/quotes", request);
console.log("Quote:", quote);
const result = await post("/v1/media/jobs", {
  ...request, idempotency_key: idempotencyKey,
  accepted_customer_price_microusd: quote.customer_price_microusd,
  accepted_maximum_reservation_microusd: quote.maximum_reservation_microusd,
  ...(quote.billing_policy_version === "actual-cost-v1"
    ? {billing_policy_version: "actual-cost-v1"} : {}),
});
console.log(result.job);
// Poll GET /v1/media/jobs/<job.id> with the same API key.
// Keep this operation ID for retries. A new ID requests another generation.

Poll the returned job ID. Download only after state is succeeded and billing_state is settled. Polling and download example.

About this model

Recraft V4 Pro is an advanced text-to-image model tailored for high-end creative production and brand-critical design work. It delivers elevated photorealism, nuanced lighting, refined composition, and contemporary styling suited for professional campaigns. The model provides enhanced control over color palettes, background colors, and style references, enabling precise brand alignment at 2K resolution. It is built to produce distinctive visuals with consistent aesthetic quality across marketing, advertising, and product-focused content.

  • text to image
  • checkpoint