Skip to main content
Model ID
recraft/recraft-v4
See pricing & more on mynth.io.
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  prompt: "Architectural photograph of a brutalist library at golden hour",
  model: "recraft/recraft-v4",
  size: "landscape",
  count: 1,
});

console.log(task.urls);
curl https://api.mynth.io/image/generate \
  -X POST \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Architectural photograph of a brutalist library at golden hour",
    "model": "recraft/recraft-v4",
    "size": "landscape",
    "count": 1
  }'