D

DeepAI · Text2img

by DeepAI

POSTBase

$0.01

per call · USD Coin on Base

Creates an image from scratch from a text description. Choose the quality tier with image_generator_version: hd, genius, or super_genius for the highest detail at 2k output. The genius tier also takes an art style in genius_preference: classic, anime, photography, graphic, or cinematic. Returns a link to the generated image.

Endpoint

POST https://deepai.pay.zeroclick.io/api/text2img

48

Calls / 30d

10

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://deepai.pay.zeroclick.io/api/text2img", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "genius_preference": "classic",
    "image_generator_version": "hd",
    "text": "a serene mountain lake at sunrise"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://deepai.pay.zeroclick.io/api/text2img" \
  -H "Content-Type: application/json" \
  -d '{"genius_preference":"classic","image_generator_version":"hd","text":"a serene mountain lake at sunrise"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x2a90d68071b16ba7ab236709d4e37a54f56fea3b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from DeepAI & similar services