Skip to main content
POST
Generate image with Riverflow 2.5 Pro

Riverflow 2.5 Pro on BudgetPixel

More examples, prompts and pricing.

Authorizations

Authorization
string
header
required

API key as a bearer token: Authorization: Bearer bpx_live_xxx

Body

application/json
prompt
string
required

Text description of the image to generate, or of the edit to apply to the input images (2 to 8000 characters). Write @handle to cast a character: a BudgetPixel AI influencer or one of your own (GET /v1/characters).

aspect_ratio
enum<string>
default:auto

Output aspect ratio. "auto" (default): an edit keeps the first input image's shape, and text-to-image is 1:1.

Available options:
auto,
1:1,
16:9,
9:16,
4:3,
3:4,
3:2,
2:3,
5:4,
4:5,
21:9
background
enum<string>
default:opaque

Output background. "transparent" returns a cut-out with an alpha channel (PNG, or WebP when asked), from a text prompt or from an input image (an edit cuts the subject out of it).

Available options:
opaque,
transparent
num_images
integer
default:1

Number of images to generate (each one is billed).

Required range: 1 <= x <= 4
output_format
enum<string>
default:png

Output image format.

Available options:
png,
jpeg,
webp
quality
enum<string>
default:medium

Thinking level: how much the model reasons about your instruction and checks its results before it returns one. "low" and "medium" (default) bill the same; "high" thinks longest and bills 105 / 190 / 295 credits per image at 1K / 2K / 4K (input images 25 each).

Available options:
low,
medium,
high
reference_images
string[]

Optional input images (up to 10) to edit or combine. Each item is a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Omit for text-to-image. Each input image bills 15 credits (25 at the high thinking level), per generated image.

Maximum array length: 10
size
enum<string>
default:1K

Output size: 1K is about 1 MP (1024x1024, or 1280x720 at 16:9), 2K about 4 MP (2048x2048, or 2560x1440), 4K about 8 MP (2880x2880, or 3840x2160). Per image: 90 / 170 / 275 credits at the low and medium thinking levels, 105 / 190 / 295 at high.

Available options:
1K,
2K,
4K

Response

Job accepted.

characters
object[]

The characters the prompt cast with @handle mentions. Absent when none.

id
string

Opaque job id — use it to poll status.

Example:

"img_a1b2c3d4e5f6"

message
string
model
string
status
enum<string>

Lifecycle state. succeeded/failed/timeout are terminal.

Available options:
pending,
starting,
processing,
completing,
succeeded,
failed,
timeout