brainbaby

Uncensored AI Images API

Generate an image from a prompt or edit a source image through your server. Use the same image-credit balance as Image Studio, and handle request errors before displaying a result.

How it works

  1. Create a key

    Sign in, open API settings, and keep your bb1x_ key on your server. Never expose it in client-side code.

  2. Send a prompt

    POST a JSON prompt to /v1/images/generate, or send a prompt and sourceImage to /v1/images/edit.

  3. Use the result

    A successful request returns an image URL and remaining image credits. One image credit is reserved per request and refunded if the provider job fails.

Questions before you start

Does this need a subscription?

Image API requests need an API key and image credits. The media endpoint can use purchased credits without a chat subscription.

Can I edit an image through the API?

Yes. POST a prompt and a publicly readable HTTPS sourceImage URL to /v1/images/edit. Editing spends one image credit.

Will every prompt produce an image?

No. Requests must pass Brainbaby's hard content rules, and the image provider can still reject a prompt or source.