78trust / 100
Image Generate
by HubVibe in AI models & inference
x402 APIPassing, checked 2 h ago
AI image generation / text to image: one image from a text prompt with Google Imagen 4, returned as base64 image bytes with its MIME type. Use it for illustrations, thumbnails, product mockups and social images. Input: prompt; optional aspect_ratio.
POST https://hubvibe-io.com/work/image/generate
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 120 ms typical, 425 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://hubvibe-io.com/work/image/generate" \
-H "content-type: application/json" \
-d '{"prompt":"A beehive built from circuit boards, isometric illustration"}'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%2Fhubvibe-io.com%2Fwork%2Fimage%2Fgenerate
const res = await pay("https://hubvibe-io.com/work/image/generate", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"prompt":"A beehive built from circuit boards, isometric illustration"}),
});
console.log(await res.json());Example input
{
"prompt": "A beehive built from circuit boards, isometric illustration"
}Example output
{
"attribution": [
{
"text": "Translated by Google",
"url": "https://translate.google.com"
}
],
"price_usd": 0.5,
"provenance": {
"attempts": 1,
"elapsed_ms": 340,
"providers_used": [
"coinbase-advanced-trade-public"
],
"steps": [
{
"ms": 312,
"ok": true,
"provider": "coinbase-advanced-trade-public",
"reason": "provider_timeout",
"step": "quote"
}
]
},
"receipt_id": "rcpt_9f1c2b3a4d5e6f70",
"receipt_url": "/work/receipts/rcpt_9f1c2b3a4d5e6f70",
"result": {
"aspect_ratio": "1:1",
"image_base64": "iVBORw0KGgo...",
"mime_type": "image/png",
"model": "imagen-4.0-generate-001",
"prompt": "A beehive built from circuit boards, isometric illustration"
},
"status": "ok",
"worker": "image.generate"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 375 ms | $0.5 |
| 5 h ago | Passed | 402 | 399 ms | $0.5 |
| 9 h ago | Passed | 402 | 421 ms | $0.5 |
| 13 h ago | Passed | 402 | 118 ms | $0.5 |
| 16 h ago | Passed | 402 | 118 ms | $0.5 |
| 19 h ago | Passed | 402 | 120 ms | $0.5 |
| 24 h ago | Passed | 402 | 425 ms | $0.5 |
| 27 h ago | Passed | 402 | 118 ms | $0.5 |
| 30 h ago | Passed | 402 | 450 ms | $0.5 |
| 35 h ago | Passed | 402 | 120 ms | $0.5 |
| 37 h ago | Passed | 402 | 127 ms | $0.5 |
| 43 h ago | Passed | 402 | 120 ms | $0.5 |