We launched workflowsTry it now

REST API

Generate images
straight from your code

A REST API with an official SDK, webhooks and transparent pricing. Integrate Pictulab into your product in minutes.

curl https://api.beta.pictulab.com/v1/generate/image \
  -H "Authorization: Bearer $PICTULAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Foto producto fondo blanco, estilo Amazon",
    "model_id": "gemini-2.5-flash-image",
    "aspectRatio": "1:1",
    "resolution": "2k"
  }'
Production · Open beta

Everything you expect from a modern API

Built so integrating it is trivial and running it in production never gives you surprises.

Low latency, high concurrency

Sync endpoints for instant results and an async queue for batch jobs without waiting.

Native webhooks

Receive image.generated, run.completed and more events at your endpoint, signed with HMAC-SHA256.

Per-team API keys

Generate multiple keys with independent scopes and rate limits from the dashboard.

Metrics and logs

A full history of calls with cost per request, errors and traces for debugging.

Core endpoints

Browse the full catalog in the documentation.

POST/v1/generate/image

Generate images with any available AI model.

POST/v1/upscale/image

Upscale resolution up to 6K with fal.ai Clarity and Aura SR.

POST/v1/herramientas/quitar-fondo

AI background remover, no watermark.

POST/v1/workflows/:id/run

Trigger a user workflow by ID or webhook.

GET/v1/pricing/image

Check the estimated token cost before generating.

GET/v1/runs/:id

Status and outputs of an asynchronous run.

Transparent pricing

Pay for what you use

The API is billed by tokens, just like the dashboard. No fixed monthly fee on the Business plan — you only pay for calls that run successfully.

FAQ

Frequently asked questions

Create an account at cloud.pictulab.com, go to Developers → API Keys and generate a key. Available from the Business plan.

Each call consumes tokens based on the model and resolution. The GET /pricing/image endpoint gives you the exact cost before you run it. Failed calls (4xx, 5xx) don't consume tokens.

By default, 60 req/min on the Business plan and custom on Enterprise. Any rate limit can be raised on request.

Yes. From the dashboard you can rotate or revoke keys instantly. Old keys stop accepting new calls.

Node.js and Python SDKs are in beta. Go, Ruby and PHP SDKs are on the roadmap. In the meantime, any standard HTTP client works.

Start integrating today

Create your API key, read the documentation and make your first call in under 5 minutes.