Rapshee/API Documentation
Request Access
Invite Only Access

API Documentation

Build with Rapshee's hosted LLMs. Our API is OpenAI-compatible and works with any standard client.

Self-Hosted Compatible

Works with any OpenAI-compatible client or SDK.

Low Latency

Response times under 200ms for most requests.

Simple Integration

Just a URL and API key. No complex setup.

Authentication

All API requests require authentication using an API key. Include your key in the Authorization header.

Connection Details

Base URLhttps://api.rapshee.com/v1
Authorization HeaderBearer YOUR_API_KEY
Content-Typeapplication/json
headers.txt
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Chat Completions

Generate conversational responses. The API follows the OpenAI chat completions format.

POST/v1/chat/completions

Request

request.js
const response = await fetch('https://api.rapshee.com/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY'
  },
  body: JSON.stringify({
    model: 'rapshee-1',
    messages: [
      { role: 'system', content: 'You are a helpful assistant.' },
      { role: 'user', content: 'What is artificial intelligence?' }
    ],
    temperature: 0.7,
    max_tokens: 1000
  })
});

const data = await response.json();
console.log(data.choices[0].message.content);

Response

response.json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1699000000,
  "model": "rapshee-1",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Artificial intelligence (AI) refers to..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 25,
    "completion_tokens": 150,
    "total_tokens": 175
  }
}

Parameters

ParameterTypeDescription
modelstringModel ID to use (required)
messagesarrayArray of message objects (required)
temperaturenumberSampling temperature, 0-2 (default: 1)
max_tokensintegerMaximum tokens to generate
streambooleanEnable streaming responses (default: false)

Models

Available models for use with the API.

rapshee-1

Our flagship model. Best for general tasks, conversations, and complex reasoning.

Context:128K
Speed:Fast
rapshee-1-mini

Lightweight model optimized for speed. Great for simple tasks and high-throughput applications.

Context:32K
Speed:Fastest

Rate Limits

API rate limits depend on your access tier.

TierRequests/minTokens/min
Developer6040,000
Pro300200,000
EnterpriseCustomCustom

Error Handling

The API uses standard HTTP status codes and returns detailed error messages.

CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
429Too Many Requests - Rate limit exceeded
500Internal Server Error
error-response.json
{
  "error": {
    "message": "Invalid API key provided",
    "type": "authentication_error",
    "code": "invalid_api_key"
  }
}

Rapshee Projects

Explore other projects built with Rapshee.

Reach²

Advanced marketing research intelligence powered by AI. Amplify your brand's competitive advantage with data-driven insights, strategic intelligence, and one-click publishing to any social media platform.

Live

R-Build

AI web app builder—start from a short brief or bring Figma, Adobe XD, or Sketch files. R-Build turns it into production-ready UI you can ship.

Alpha · Live

Rapshee Vision

Coming Soon

Multimodal AI for image understanding and generation.

In Development

Rapshee Code

Coming Soon

AI-powered code assistant for developers.

In Development

Rapshee Translate

Coming Soon

Real-time translation across 100+ languages.

In Development

Ready to build?

Request API access to start building with Rapshee. Tell us about your project and get an invite to test our hosted LLMs.