Developer API

Build with the Grimoire API

Integrate AI agents, prompts, and chat capabilities into your applications with our comprehensive REST API and SDKs.

0+

AI providers supported

0+

Models available

0.0%

API uptime

<0ms

Routing overhead

Get started in minutes

Choose your preferred language and start building

terminal
curl -X POST https://api.grimoire.tech/v1/prompts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Code Review",
    "content": "Review this code for security issues...",
    "agent_id": "agent_123"
  }'

API capabilities

POST /v1/prompts

Prompt Management API

Create, update, version, and organize prompts programmatically. Access your entire prompt library with full CRUD operations and template support.

POST /v1/agents

Agent API

Deploy and manage AI agents with custom configurations. Define personalities, capabilities, and workflows through code.

POST /v1/chat/completions

Chat Completions API

Stream chat responses with support for multiple AI providers. Compatible with OpenAI format for easy migration.

GET /v1/workspaces

Workspace API

Manage team workspaces, permissions, and shared resources. Automate workspace setup and member management at scale.

From zero to production in 3 steps

From sign-up to your first API call in under 5 minutes

1

Get your API key

Sign up for a free account and generate an API key from your dashboard in seconds.

2

Install the SDK

Add the official SDK to your project with a single command. Available for Python and TypeScript.

3

Make your first request

Use the SDK or REST API to create prompts, deploy agents, and stream chat responses.

Built for developers

RESTful Design

Standard HTTP methods with JSON request/response format. Follows REST best practices for predictable, consistent behavior.

Official SDKs

Type-safe SDKs for Python and TypeScript. Auto-generated from OpenAPI spec with full IntelliSense support.

Webhooks

Real-time event notifications for agent completions, prompt updates, and workspace changes.

Rate Limiting

Generous rate limits with clear headers. Request increases as you scale. No surprise throttling.

API Key Auth

Secure API key authentication with multiple keys per workspace. Rotate keys without downtime.

Versioning

Semantic versioning with backward compatibility guarantees. Deprecation notices 6 months in advance.

API FAQ

Common questions about authentication, rate limits, and pricing.

Ready to start building?

Get your API key and start integrating Grimoire today.