Developer Tools

SDKs

Official client libraries for Python, Node.js, and Go. Install from GitHub and start integrating taste intelligence in minutes.

Terminal
$ pip install git+https://github.com/commandAGI/commandagi-python.git
Full type hints with dataclasses
Context manager support
httpx-based HTTP client
Python 3.10+
quickstart.py
import os
from commandagi import CommandAGI, ProfileCreateParams, EvalParams

client = CommandAGI(api_key=os.environ["COMMANDAGI_API_KEY"])

# Create a taste profile
profile = client.profiles.create(ProfileCreateParams(
    project_id="your-project-id",
    name="cinematic-look",
    seed="Dark, moody cinematography with high contrast",
))

# Evaluate content
result = client.profiles.eval(profile.id, EvalParams(
    frame_url="https://example.com/image.jpg",
))

print(f"Score: {result.score}, Confidence: {result.confidence}")

API Endpoints

API Reference
POST/api/v1/profiles
GET/api/v1/profiles
GET/api/v1/profiles/:id
PATCH/api/v1/profiles/:id
DELETE/api/v1/profiles/:id
POST/api/v1/profiles/:id/eval
GET/api/v1/profiles/:id/export

Authentication

All API requests require a Bearer token. Create an API key in your project settings.

Authorization: Bearer cagi_xxxxxxxxxxxxxxxxxxxx