Upgrade
PicX StudioPicX Studio
Create
Generate
Explore
Templates
Skills
Prompts
Product Video Studio
Product Image Studio
Ad Templates
Media
DirectorLive
Creditsup to 80%

Buy Credits−80%CreditsLoading…up to 80% off yearly
  • Overview
  • Docs
  • API keys
  • Playground
  • MCP
  • CLI
Getting Started
  • Quick Start
  • Authentication
  • Rate Limits
MCP
  • Overview
  • Tools Reference
  • Connect Claude Desktop
  • Connect Cursor
CLI
  • Overview
  • Command Reference
  • Recipes
API Reference
  • Generate Image
  • Edit Image
  • Generate Video
  • List Models
  • Managed Assets
  • Templates
Developer Tools
  • API Keys
  • Webhooks
  • Usage Tracking
  • Playground
  • Async Image Generation
Code Examples
  • cURL Examples
  • Python SDK
  • JavaScript SDK
DevelopersDocsGetting Started

Authentication

Authenticate every request with an API key passed as a Bearer token.

View as Markdown

PicX Studio uses API key authentication. Every request must include your key in the Authorization header as a Bearer token. Keys are scoped to specific operations and can be revoked at any time.

Authorization header#

Authorization: Bearer pxsk_your_api_key_here

Using your key#

  1. Create a key

    In the API dashboard, create a new key and select its scopes. Keys are created and managed through the dashboard API — see Developer Tools → API Keys.

  2. Copy it once

    The full key starts with pxsk_ and is shown only once at creation. Store it in a secret manager or an environment variable.

  3. Send it with every request

    Add the Authorization: Bearer pxsk_… header to each call. The key identifies your account and is used for billing and rate limiting.

Never expose API keys in client-side code, public repositories, or browser network requests. Keep them server-side and load them from environment variables or a secret manager.

Scopes restrict what a key can do. Request only the scopes an integration actually needs.

Available scopes#

images:generate   Generate images from text prompts
images:edit       Edit existing images with instructions
videos:generate   Generate videos from text or images
uploads:write     Upload files to managed assets for image/video inputs
audio:generate    Generate audio and music
agent:run         Run AI agent workflows

API keys (pxsk_…) are for programmatic access from servers, scripts, and apps. They are separate from the browser session (JWT) the dashboard uses.

Verify your key#

JavaScript SDK

npm install picx-ai
import { PicX } from "picx-ai";

const picx = new PicX(process.env.PICX_API_KEY);

const me = await picx.account.me();
console.log(me.name, me.email);
console.log("Credits:", me.credits.balance);

Python SDK

pip install picx-ai
import os
from picx import PicX

picx = PicX(os.environ["PICX_API_KEY"])

me = picx.account.me()
print(me.name, me.email)
print("Credits:", me.credits["balance"])

curl

curl https://api.picxstudio.com/v1/account/me \
  -H "Authorization: Bearer pxsk_your_key"

Response

{
  "id": "1c4d3574-883c-4cd8-85f5-7090bf686d64",
  "email": "[email protected]",
  "name": "Your Name",
  "is_active": true,
  "credits": {
    "balance": 2164,
    "total_earned": 17100,
    "total_used": 6533
  }
}

FAQ#

How do I authenticate a request?#

Add an Authorization: Bearer pxsk_your_api_key_here header to every request. The key identifies your account and is used for both billing and rate limiting.

Where do I get an API key?#

Create one from the API dashboard, under Developer Tools → API Keys. The full key is shown only once, at creation — store it in a secret manager or environment variable immediately.

Can I limit what a key is allowed to do?#

Yes — keys are scoped. Available scopes are images:generate, images:edit, videos:generate, uploads:write, audio:generate, and agent:run. Request only the scopes an integration actually needs.

Is it safe to use my API key in client-side/browser code?#

No — never expose API keys in client-side code, public repositories, or browser network requests. Keep them server-side, loaded from environment variables or a secret manager.

How do I check that my key works?#

Call GET /v1/account/me with the key — a successful response returns your account details and current credit balance. See "Verify your key" above.

Previous
Quick Start
Next
Rate Limits
On this page
  • Authorization header
  • Using your key
  • Available scopes
  • Verify your key
  • FAQ
  • How do I authenticate a request?
  • Where do I get an API key?
  • Can I limit what a key is allowed to do?
  • Is it safe to use my API key in client-side/browser code?
  • How do I check that my key works?
PicX Studio

Fuel your creativity, frame your story.

Studio

  • 1985 Snapshot
  • Templates
  • Skills
  • Tools
  • Prompts
  • Discover
  • PicX TV
  • Pricing
  • Blog

Skills

  • 1985 Flash Snapshot
  • 90s Album Snapshot
  • Storyboard to Video Workflow
  • H3 Max Director Live
  • GPT Image 2 Prompting
  • Character Continuity

Video models

  • MiniMax H3
  • Seedance 2.5
  • Seedance 2.0
  • Kling 3.0 Pro
  • FLUX 3
  • Grok Imagine
  • What is Seedance?
  • Higgsfield alternative

Image models

  • Nano Banana 2
  • Nano Banana Pro
  • GPT Image 2
  • Seedream 5 Pro
  • Nano Banana 2 vs Pro
  • What is Nano Banana?
  • Prompt Generator

E-commerce

  • AI tools for e-commerce
  • AI product photography
  • AI product video generator
  • AI UGC video ads
  • AI video ad generator
  • AI dropshipping

Free Tools

  • Background Remover
  • Image Upscaler
  • Image Compressor
  • Image to Text
  • Meme Generator
  • Instagram grid maker
  • AI face generator
  • Explore all tools

Resources

  • Compare
  • Prompt Roundups
  • Guides
  • Docs
  • API
  • CLI
  • FAQ

Company

  • About Us
  • Team
  • Careers
  • Brand
  • Partners
  • Sponsors
  • Roadmap
  • Status
  • Domain Rating
PicX Studio

© 2026 PicX Studio. All rights reserved.

Monitor your Domain Rating with FrogDR
[email protected]
  • Terms of Service
  • Privacy Policy
  • Security