
GPT Image 2 generation and editing
OpenAI's image model with close instruction following, sharp text rendering and detailed edits from reference images.
POST /api/v1/nodes/gpt-image-2
Quick setup for humans and agents
- 1. Fund an x402 wallet with a little USDC on Base. AgentCash (above), Coinbase Wallet or any x402 client works. One dollar covers hundreds of calls.
- 2. Call the endpoint. The first response is HTTP 402 with the exact price.
- 3. Your wallet signs and retries. TollNode runs the node and collects the quoted price only if the result is usable.
see the 402 yourself
curl -i -X POST https://tollnode.com/api/v1/nodes/gpt-image-2 \
-H 'content-type: application/json' \
-d '{"prompt":"an infographic of how a toll booth works","quality":"low"}'Input
| Field | Type | Notes |
|---|---|---|
| prompt* | string | What to create or change |
| quality | enum | Sets the price. Default medium (low, medium, high) |
| background | enum | (auto, opaque) |
| aspect_ratio | enum | Aspect ratio, default 1:1 (1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16) |
| input_images | array | Reference or source image URLs (https), optional |
| output_format | enum | (png, jpeg, webp) |
Example response
{
"images": [
"https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
]
}FAQ
- What does the GPT Image 2 generation and editing node return?
- OpenAI's image model with close instruction following, sharp text rendering and detailed edits from reference images.
- How much does one call cost?
- from $0.018 in USDC on Base, per successful call, depending on quality (low: $0.018, high: $0.174, medium: $0.065). No sign-up, subscription or API key.
- What happens if the call fails?
- You are not charged. TollNode checks your signed payment first, runs the node, and only collects the payment if the result is usable. A failed, empty or timed-out call is never settled, so there is nothing to refund.
- How does an AI agent pay?
- With x402. The first request returns HTTP 402 and the exact price. Any x402 wallet signs the USDC payment and retries automatically. In Claude Code or Cursor, run npx agentcash add https://tollnode.com once.