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.gitFull 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/profilesGET
/api/v1/profilesGET
/api/v1/profiles/:idPATCH
/api/v1/profiles/:idDELETE
/api/v1/profiles/:idPOST
/api/v1/profiles/:id/evalGET
/api/v1/profiles/:id/exportAuthentication
All API requests require a Bearer token. Create an API key in your project settings.
Authorization: Bearer cagi_xxxxxxxxxxxxxxxxxxxx