Memory · sandbox · browse · critique · judge.
Documents16PDF · Word · Excel · OCR.
Audio20Transcribe · diarize · TTS.
Images27Caption · OCR · resize.
Web39Scrape · screenshot · meta.
Validation25Email · IBAN · IP · VAT.
Conversions20JSON · YAML · UUID.
All endpoints159Full catalog · featured first.
Wallet-only · earn USDC daily.
Sell-side guideEIP-712 · JWT · settlement.
Pricing & take rate3% paywall · 4% proxy.
How settlement worksSettlement runs daily at 00:00 UTC, in USDC. A balance ≥ 1 USDC is paid at the next run (within 24h). A balance below 1 USDC carries over and accumulates across days until it reaches 1 USDC, then it's paid.
/v1/image/edit/flux-kontext
Powered by Replicate
Request → Response
Examples from schemas.json.
POST /v1/image/edit/flux-kontext Content-Type: application/json { "input_image": "https://tools402.dev/og/og-docs.png", "prompt": "Summarize this text in one sentence.", "aspect_ratio": "match_input_image", "output_format": "jpg", "safety_tolerance": 2, "prompt_upsampling": false }
HTTP/1.1 200 OK Content-Type: application/json // Endpoint-specific body after 402 settlement
Edit an input image from a text prompt with configurable aspect ratio and output format. Powered by FLUX Kontext Max on Replicate.
Cloud platform to run open-source machine learning models via API.
Body: JSON · application/json
| Field | Type | Description | |
|---|---|---|---|
| input_image | string | required | — |
| prompt | string | required | — |
| aspect_ratio | string | required | enum: match_input_image, 1:1, 16:9, 9:16, 3:2, 2:3 |
| output_format | string | required | enum: jpg, png |
| safety_tolerance | integer | required | min: 1 |
| prompt_upsampling | boolean | required | — |
curl -X POST https://api.tools402.dev/v1/image/edit/flux-kontext \
-H "Content-Type: application/json" \
-d '{
"input_image": "https://tools402.dev/og/og-docs.png",
"prompt": "Summarize this text in one sentence.",
"aspect_ratio": "match_input_image",
"output_format": "jpg",
"safety_tolerance": 2,
"prompt_upsampling": false
}'402 payment flow omitted — see Integrations for settlement.