API Reference
The Ravonix API is engineered for the Minecraft Ecosystem. Use standard HTTP status codes and provide your API key in the Authorization header.
/v1/chatOptimized for general Minecraft assistant queries, technical Paper/Spigot help, and player support interactions.
Parameters
promptstring, requiredThe user's query or instruction.
modelstring, requiredSpark, Forge, or Void.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Forge",
"prompt": "How do I optimize my server.properties for 100 players?",
"temperature": 0.5
}'{
"id": "Rit_cc2e9577f360560be36a3a6d",
"model": "Forge",
"output": "To optimize for 100 players, set view-distance=6, network-compression-threshold=256, and ensure your RAM allocation is...",
"usage": { "input_tokens": 15, "output_tokens": 45, "total_tokens": 60 }
}/v1/assistantA game-aware technical assistant designed for server automation, command generation, and plugin logic analysis.
Parameters
promptstring, requiredThe command or logic query.
modelstring, requiredForge or Void recommended.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/assistant \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Void",
"prompt": "Write a complex /execute command to summon particles around players with Diamond Armor.",
"max_tokens": 200
}'{
"id": "Rit_a1b2c3d4e5f6g7h8i9j0k1l2",
"model": "Void",
"output": "/execute as @a[nbt={Inventory:[{Slot:102b,id:\"minecraft:diamond_chestplate\"}]}] run particle soul_fire_flame ~ ~ ~ 0.5 1 0.5 0.01 10",
"usage": { "input_tokens": 22, "output_tokens": 35, "total_tokens": 57 }
}/v1/npcGenerates immersive NPC dialogue for in-game characters. Ensures character consistency within the Minecraft universe.
Parameters
promptstring, requiredThe player interaction or context.
modelstring, requiredSpark or Forge.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/npc \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Spark",
"prompt": "I found something glowing in the deep dark.",
"personality": "A terrified miner",
"stop": ["."]
}'{
"id": "Rit_f827d66ef341d6ad4afa3aeb",
"model": "Spark",
"output": "Don't touch it! The Wardens hear everything down there...",
"usage": { "input_tokens": 18, "output_tokens": 12, "total_tokens": 30 }
}/v1/roleplayEngages in multi-turn roleplay. Supports system personas and conversation history for deep narrative immersion.
Parameters
messagesarray, requiredList of message objects (role & content).
modelstring, requiredSpark, Forge, or Void.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/roleplay \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Forge",
"messages": [
{ "role": "system", "content": "You are the King of Ravonix." },
{ "role": "user", "content": "The creepers have breached the outer wall!" }
],
"temperature": 1.2
}'{
"id": "Rit_cc2e9577f360560be36a3a6d",
"model": "Forge",
"output": "To arms! Gather the knights and fortify the keep. No explosive beast shall take our crown today!",
"usage": { "input_tokens": 40, "output_tokens": 25, "total_tokens": 65 }
}/v1/questGenerates logically sound and narratively rich Minecraft quests, objectives, and rewards.
Parameters
promptstring, requiredQuest theme or setting.
modelstring, requiredVoid recommended.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/quest \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Void",
"prompt": "A quest to find the lost library in a jungle biome.",
"n": 1
}'{
"id": "Rit_cc2e9577f360560be36a3a6d",
"model": "Void",
"output": "Quest: The Emerald Archives. Objective: Find the ruined temple at X: 450, Z: -1200. Reward: 1 Enchanted Golden Apple.",
"usage": { "input_tokens": 20, "output_tokens": 40, "total_tokens": 60 }
}/v1/loreGenerates deep historical myths and legends for the Minecraft universe. Ideal for world-building.
Parameters
promptstring, requiredThe topic of the lore (e.g., 'The origin of the Endermen').
modelstring, requiredForge or Void recommended.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/lore \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Forge",
"prompt": "Tell me the legend of the ancient guardians in the ocean monuments."
}'{
"id": "Rit_cc2e9577f360560be36a3a6d",
"model": "Forge",
"output": "Long ago, before the oceans rose, a cult of aquatic warriors built grand palaces. To protect their treasures, they infused stone with life, creating the laser-eyed Guardians that remain to this day...",
"usage": { "input_tokens": 25, "output_tokens": 75, "total_tokens": 100 }
}/v1/customDirect bypass mode. Executes your instructions with 100% precision without any Ravonix system interference.
Parameters
promptstring, requiredYour direct instructions.
modelstring, requiredAny model.
temperaturefloat, optionalControls randomness (0.0 to 2.0). Lower is more focused, higher is more creative. Default: 0.7.
max_tokensinteger, optionalThe maximum length of the generated response. Default: 1000.
personalitystring, optionalAn optional persona for the AI to adopt (e.g., 'A talkative pirate').
top_pfloat, optionalNucleus sampling. Default: 1.0.
stopstring/array, optionalSequences where the API will stop generating further tokens.
ninteger, optionalNumber of choices to generate. Default: 1.
Response Schema
id: Unique identifier for the request (starts with Rit_).model: The Ravonix model used.output: The AI generated text.usage: input_tokens, output_tokens, and total_tokens.
curl https://api.ravonixapi.com/v1/custom \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "Spark",
"prompt": "Say exactly: SYSTEM_READY_V2"
}'{
"id": "Rit_cc2e9577f360560be36a3a6d",
"model": "Spark",
"output": "SYSTEM_READY_V2",
"usage": { "input_tokens": 10, "output_tokens": 5, "total_tokens": 15 }
}Error Reference
Every error response includes a solution field to help you resolve issues immediately.
Bad Request
Reason
Missing required field or invalid JSON format.
Solution
Check your parameters and JSON syntax.
{
"error": {
"code": 400,
"message": "Bad Request",
"reason": "Missing required field or invalid JSON format.",
"solution": "Check your parameters and JSON syntax."
}
}Unauthorized
Reason
API key is missing or invalid.
Solution
Provide a valid Rit_ key in the Authorization header.
{
"error": {
"code": 401,
"message": "Unauthorized",
"reason": "API key is missing or invalid.",
"solution": "Provide a valid Rit_ key in the Authorization header."
}
}Payment Required
Reason
Token balance consumed.
Solution
Upgrade your plan or wait for the next cycle.
{
"error": {
"code": 402,
"message": "Payment Required",
"reason": "Token balance consumed.",
"solution": "Upgrade your plan or wait for the next cycle."
}
}Forbidden
Reason
Model not available on your plan.
Solution
Upgrade to access higher-tier models.
{
"error": {
"code": 403,
"message": "Forbidden",
"reason": "Model not available on your plan.",
"solution": "Upgrade to access higher-tier models."
}
}Too Many Requests
Reason
RPM or TPM limits reached.
Solution
Reduce frequency or upgrade for higher limits.
{
"error": {
"code": 429,
"message": "Too Many Requests",
"reason": "RPM or TPM limits reached.",
"solution": "Reduce frequency or upgrade for higher limits."
}
}Internal Server Error
Reason
Unexpected server issue.
Solution
Retry later or contact Ravonix support.
{
"error": {
"code": 500,
"message": "Internal Server Error",
"reason": "Unexpected server issue.",
"solution": "Retry later or contact Ravonix support."
}
}