Skip to content

How to Generate an Image

Step-by-step guide to generating images with Get3W.

Quick Start

bash
curl -X POST "https://api.get3w.com/api/v3/get3w/flux-dev" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A serene Japanese garden with cherry blossoms, golden hour lighting",
    "width": 1024,
    "height": 1024
  }'
python
import get3w

output = get3w.run(
    "get3w/flux-dev",
    {
        "prompt": "A serene Japanese garden with cherry blossoms, golden hour lighting",
        "width": 1024,
        "height": 1024
    }
)

print(output["outputs"][0])
javascript
const output = await client.run("get3w/flux-dev", {
    prompt: "A serene Japanese garden with cherry blossoms, golden hour lighting",
    width: 1024,
    height: 1024,
});

console.log(output.outputs[0]);

Choosing a Model

ModelSpeedQualityBest For
FLUX DevMediumHighGeneral purpose
FLUX SchnellFastGoodQuick iterations
Seedream V4.5MediumVery HighPhotorealistic images
Nano Banana ProFastHighCreative styles
Stable Diffusion 3.5MediumHighFine-tuned control

Common Parameters

ParameterTypeDescriptionDefault
promptstringText description of the imageRequired
widthintegerOutput width in pixels1024
heightintegerOutput height in pixels1024
seedintegerRandom seed for reproducibilityRandom
stepsintegerNumber of inference stepsModel default

Tips for Better Results

  1. Be specific — "A golden retriever playing fetch in a park at sunset" is better than "a dog"
  2. Include style keywords — Add "cinematic", "photorealistic", "watercolor", etc.
  3. Specify lighting — "golden hour", "studio lighting", "dramatic shadows"
  4. Set dimensions — Use the aspect ratio that matches your use case
  5. Use the Prompt Enhancer — Available in the web interface

Image-to-Image

Transform existing images using models that accept image input:

bash
curl -X POST "https://api.get3w.com/api/v3/get3w/flux-kontext-dev" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://cdn.get3w.com/uploads/your-image.png",
    "prompt": "Transform into a watercolor painting style"
  }'

Next Steps

Released under the MIT License.