Documentation

Learn how to use the Pixevo API.

API Overview

The Pixevo API is a RESTful API that lets you programmatically create AI-generated images and videos.

Base URL

https://pixevo.net/api/v1

Authentication

All requests require a Bearer token in the Authorization header.

Authorization: Bearer px_live_your_api_key_here

Quick example

Here's an example to generate an image using cURL.

bash
curl -X POST https://pixevo.net/api/v1/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_id": "flux-pro",
    "prompt": "A beautiful sunset over the ocean, photorealistic"
  }'

Response format

All responses are in JSON format.

json
{
  "data": {
    "id": "k7m9x2p4",
    "status": "pending",
    "model_id": "flux-pro",
    "prompt": "A beautiful sunset over the ocean, photorealistic",
    "credits_charged": 10,
    "created_at": "2024-01-15T10:30:00Z"
  },
  "credits_remaining": 990
}