$ man character-portrait
/character-portrait
PRICE / CALL
$0.08
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
rollforgeCATEGORY
uncategorized
STATUS
● live
NAME
character-portrait — generates an rpg character portrait from structured inputs and returns a hosted png url
SYNOPSIS
POST https://x402.agentutility.ai/character-portrait
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Generates an RPG character portrait from structured inputs and returns a hosted PNG URL. Builds the image from race, class, gender, a free-text description, and an art style (fantasy-art, realistic, anime, oil-painting, ink-sketch, watercolor, pixel-art, comic-book). Pairs with character-gen: generate the character, then its portrait. Text-to-image via Venice, output hosted on fal. Use it as a character portrait generator API, RPG character art source, D&D character image maker, or fantasy avatar generator.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| race | string | Character race, e.g. 'Elf', 'Half-Orc'. | optional |
| class | string | Character class, e.g. 'Wizard', 'Rogue'. | optional |
| gender | string | Optional gender/presentation descriptor. | optional |
| description | string | Free-text details: appearance, gear, mood, setting. | optional |
| style | string | Art style: fantasy-art (default), realistic, anime, oil-painting, ink-sketch, watercolor, pixel-art, comic-book. | optional |
| seed | number | Optional integer seed for reproducibility. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| image_url | string | — |
| subject | string | — |
| style | string | — |
| model | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/character-portrait \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the character-portrait tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- rollforgecharacterportraitcharacter-portrait
- methods
- POST
- cluster
- rollforge
- price
- $0.08 USDC per call
ADJACENT — other endpoints in rollforge
| endpoint | description | price |
|---|---|---|
| ability-check | Resolves a d20 ability check, skill check, attack roll, or saving throw for tabletop RPGs. | $0.005 |
| background-gen | Character background generator API / personality trait, ideal, bond, flaw generator for tabletop RPGs. | $0.005 |
| character-gen | Generates a complete D&D 5e-style character, from ability scores to a procedurally generated name. | $0.005 |
| dice-roll | Rolls dice from standard dice notation for tabletop RPGs. | $0.005 |
| dice-stats | Calculates the probability distribution of a dice roll, anydice-style. | $0.005 |
| dungeon-room | Generates a random dungeon room for game masters: shape, contents, a notable feature, a hazard, an occupant, and the number of exits. | $0.005 |
| encounter-builder | Encounter builder / encounter difficulty calculator API for D&D 5e. | $0.005 |
| initiative-roll | Initiative tracker / initiative order roller API for tabletop combat. | $0.005 |
SEE ALSO