Pictura API
Integrate AI image generation directly into your applications. The same capabilities available in the Studio, via simple REST endpoints.
How it works
Four simple steps to start generating images programmatically.
Get your API key
Sign up and create a scoped API key from the dashboard. Keys are free during beta.
Install the SDK
pip install pictura or npm install @pictura/sdk -- or use raw HTTP requests.
Send your first request
Call /v1/images/generate with your prompt. The response includes a CDN URL for your image.
Handle the response
Images are returned as URLs hosted on our global CDN. Download or embed them directly.
API Access Coming Soon
We are actively building the Pictura API. It will be free during beta with generous rate limits for developers.
Try the StudioAPI Reference
Detailed endpoint documentation with parameters and responses.
Rate Limits & Pricing
Free during beta, with clear upgrade paths planned.
Pricing is preliminary and subject to change. All beta users will be grandfathered.
What to Expect
RESTful API
Simple REST endpoints with JSON responses. Integrate with any language in minutes.
Official SDKs
Client libraries for Python, Node.js, and more coming at launch.
Webhooks
Get notified asynchronously when image generation completes.
API Keys
Secure authentication with scoped API keys and built-in rate limiting.
Quick Start
Get started with your preferred language.
import pictura
client = pictura.Client(api_key="pk_...")
# Generate an image
image = client.generate(
prompt="A serene mountain lake at golden hour",
size="1024x1024"
)
print(image.url)
image.save("output.png")API Architecture
How requests flow through the Pictura system.
Your Application
REST API call with auth header
Auth & Rate Limit
API key validation & quota check
Prompt Processing
NLP enhancement & safety filtering
Model Router
Style-optimized model selection
Generation Engine
Multi-pass diffusion pipeline
CDN Delivery
Global edge response