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
| Model | Speed | Quality | Best For |
|---|---|---|---|
| FLUX Dev | Medium | High | General purpose |
| FLUX Schnell | Fast | Good | Quick iterations |
| Seedream V4.5 | Medium | Very High | Photorealistic images |
| Nano Banana Pro | Fast | High | Creative styles |
| Stable Diffusion 3.5 | Medium | High | Fine-tuned control |
Common Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
prompt | string | Text description of the image | Required |
width | integer | Output width in pixels | 1024 |
height | integer | Output height in pixels | 1024 |
seed | integer | Random seed for reproducibility | Random |
steps | integer | Number of inference steps | Model default |
Tips for Better Results
- Be specific — "A golden retriever playing fetch in a park at sunset" is better than "a dog"
- Include style keywords — Add "cinematic", "photorealistic", "watercolor", etc.
- Specify lighting — "golden hour", "studio lighting", "dramatic shadows"
- Set dimensions — Use the aspect ratio that matches your use case
- 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
- How to Create Video from Image — Animate your images
- How to Write Better Prompts — Improve your results
- How to Choose the Right Model — Find the best model