Docs · Developers

API & SDKs

Build with the FIVE STACK API: REST endpoints, JavaScript/TypeScript and Lua SDKs, webhooks, API key types and rate limits — and how to request developer access.

The FIVE STACK API gives you programmatic access to 40+ AI models and 600K+ indexed FiveM and RedM scripts. Generate production-ready code from your own tools, automate workflows and extend your development pipeline.

Request access

API access is granted per developer. Apply for developer access and get your API keys in under 48 hours. API access is also part of the Ultra plan.

What's included

REST API (v1) Projects, generations, deployments and template endpoints
SDKs Official JavaScript/TypeScript and Lua SDKs with full type definitions and auto-complete
Webhooks Real-time events for generation completion, deployments and project updates
Templates Pre-built ESX, QBCore and QBX templates — vehicle garages, police MDTs, item shops and more

Base URL:

https://api.fivestack.dev/v1

Quick example

Initialise the client, make a call and get production-ready code back:

import { FiveStack } from "@fivestack/sdk";

const client = new FiveStack({
  apiKey: process.env.FIVESTACK_API_KEY,
});

// Generate a FiveM script from a prompt
const generation = await client.generations.create({
  project_id: "proj_abc123",
  prompt: "ESX vehicle garage with NUI",
  model: "anthropic/claude-sonnet-4-5-20250929",
  framework: "esx",
});

console.log(generation.files);

API keys

Three key types, for three environments. Keep production safe, test freely in the sandbox and automate deployments with CI keys.

Prefix Environment Access
fs_live_ Production Full API access with credit consumption
fs_test_ Sandbox Full API access with no credit consumption — for development and testing
fs_ci_ CI/CD Deployment endpoints only — built for automated pipelines

Keep keys in environment variables or your secret store — never in client-side code or a public repository.

Rate limits

Account Requests per minute
Standard 60
Pro 300

More