80trust / 100
Images Generations
by OpenAI gpt-image-1.5 in AI models & inference
x402 APIPassing, checked 3 h ago
gpt-image-1.5: OpenAI GPT Image 1.5 image generation, paid per call in USDC. OpenAI list $32 per 1M image tokens (1024x1024: low 272, medium 1056, high 4160 tokens), text in $5 per 1M, plus $0.0005 (Base) or $0.0005 (Solana) per call. Send size and quality (auto is refused); omitted means 1024x1024 medium. Returns b64_json. Rates: https://openai.mm.family/x402/pricing
POST https://openai.mm.family/x402/v1/models/gpt-image-1.5/images/generations
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 31 ms typical, 41 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://openai.mm.family/x402/v1/models/gpt-image-1.5/images/generations" \
-H "content-type: application/json" \
-d '{"model":"gpt-image-1.5","n":1,"prompt":"A red fox in the snow","quality":"low","size":"1024x1024"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fopenai.mm.family%2Fx402%2Fv1%2Fmodels%2Fgpt-image-1.5%2Fimages%2Fgenerations
const res = await pay("https://openai.mm.family/x402/v1/models/gpt-image-1.5/images/generations", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"model":"gpt-image-1.5","n":1,"prompt":"A red fox in the snow","quality":"low","size":"1024x1024"}),
});
console.log(await res.json());Example input
{
"model": "gpt-image-1.5",
"n": 1,
"prompt": "A red fox in the snow",
"quality": "low",
"size": "1024x1024"
}Example output
{
"created": 1,
"data": [
{
"b64_json": "<base64 png>"
}
],
"output_format": "png",
"quality": "low",
"size": "1024x1024",
"usage": {
"input_tokens": 12,
"output_tokens": 196,
"total_tokens": 208
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 30 ms | $0.0056 |
| 7 h ago | Passed | 402 | 96 ms | $0.0056 |
| 10 h ago | Passed | 402 | 32 ms | $0.0056 |
| 14 h ago | Passed | 402 | 29 ms | $0.0056 |
| 17 h ago | Passed | 402 | 30 ms | $0.0056 |
| 22 h ago | Passed | 402 | 41 ms | $0.0056 |
| 25 h ago | Passed | 402 | 31 ms | $0.0056 |
| 28 h ago | Passed | 402 | 32 ms | $0.0056 |
| 33 h ago | Passed | 402 | 31 ms | $0.0056 |