Meta Muse & Meta Spark
Complete developer guide and reference for Meta Model API (Llama 3.3 / Llama 3.1 & Muse generative creative models) and Meta Spark AR Studio platform. Built for next-gen conversational AI, multimodal generation, and augmented reality experiences.
โข Meta Model API Portal: Meta Model API Documentation
โข Developer Overview Console: Meta AI Developer Overview Console
Meta Model API & Muse Suite
Meta offers high-throughput, low-latency API access to open-weights models and specialized generative engines directly hosted on Meta's global infrastructure.
Llama 3.3 70B
State-of-the-art instruction following, coding, agentic reasoning, and function calling.
| Input Price | $0.35 / 1M tokens |
| Output Price | $0.40 / 1M tokens |
| Context Window | 128,000 tokens |
| Max Output | 8,192 tokens |
Meta Muse Spark
Ultra-fast creative text, asset design, dynamic UI generation, and style transfer for Spark AR.
| Input Price | $0.18 / 1M tokens |
| Output Price | $0.24 / 1M tokens |
| Context Window | 64,000 tokens |
| Image / Asset Gen | $0.003 / image |
Meta Muse Spark Contributor
Open-weights community model for custom LoRA training, local deployment, and Spark AR patch pipelines.
| License | Open Meta License |
| API Hosted Price | $0.10 / 1M tokens |
| Self-Hosted / Weights | Free (HuggingFace / Ollama) |
| Fine-Tuning Support | LoRA / QLoRA / Unsloth |
Spark Studio API
Programmatic AR filter creation, face tracking mesh, target tracking, and 3D spatial scripting.
| SDK Version | v180.0 (Latest) |
| Platforms | Instagram, Facebook, Ray-Ban Meta |
| Target Tracking | Plane, Face, Hand, Body |
| Scripting Engine | JavaScript (ES6+) / Reactive |
Key Capabilities
OpenAI Compatible
Drop-in REST endpoints matching standard Chat Completion formats with zero friction migration.
Native Tool Use
Built-in function calling for real-time web search, database querying, and external API invocation.
Muse Creative Engine
Specialized prompt tuning for artistic layout generation, copy editing, and creative ideation.
Meta Spark Studio Integration
Export real-time AI outputs directly into Spark AR scene graphs and Ray-Ban Meta Smart Glasses.
๐งฎ Meta Model API Cost Estimator
Live Monthly CalculationSelect a Meta model variant and adjust token consumption to calculate estimated monthly API costs.
โก Interactive Meta AI Playground Console
Live API SimulatorTest prompt parameters, system context, and temperature against Meta Model API format in real time.
Integration Code Snippets
Standard REST endpoints and SDK initialization examples.
curl -X POST "https://api.meta.ai/v1/chat/completions" \
-H "Authorization: Bearer $META_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Meta-Team-ID: 2103496870583053" \
-H "X-Meta-Project-ID: 1058226340231296" \
-d '{
"model": "meta-muse-spark-v1",
"messages": [
{"role": "system", "content": "You are Meta Muse, an expert AR & creative AI companion."},
{"role": "user", "content": "Generate a Meta Spark JavaScript snippet for face-distance reactive particle colors."}
],
"temperature": 0.7,
"max_tokens": 1024
}'
import os
from openai import OpenAI
# Meta Model API is fully OpenAI spec compliant
client = OpenAI(
api_key=os.environ.get("META_API_KEY"),
base_url="https://api.meta.ai/v1",
default_headers={
"X-Meta-Team-ID": "2103496870583053",
"X-Meta-Project-ID": "1058226340231296"
}
)
response = client.chat.completions.create(
model="llama-3.3-70b-instruct",
messages=[
{"role": "system", "content": "You are Meta Muse assistant."},
{"role": "user", "content": "Explain how to stream Meta Muse outputs into Spark Studio."}
],
stream=True
)
for chunk in response:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
import OpenAI from 'openai';
const metaAI = new OpenAI({
apiKey: process.env.META_API_KEY,
baseURL: 'https://api.meta.ai/v1',
defaultHeaders: {
'X-Meta-Team-ID': '2103496870583053',
'X-Meta-Project-ID': '1058226340231296'
}
});
async function main() {
const completion = await metaAI.chat.completions.create({
model: 'meta-muse-spark-v1',
messages: [{ role: 'user', content: 'Design a prompt sequence for dynamic Spark AR filters.' }],
});
console.log(completion.choices[0].message.content);
}
main();
// Meta Spark Studio (v180+) Scripting Module
const Scene = require('Scene');
const FaceTracking = require('FaceTracking');
const Reactive = require('Reactive');
const Networking = require('Networking');
(async function () {
// Track user face gestures in Spark AR
const face = FaceTracking.face(0);
const mouthOpenness = face.mouth.openness;
// Trigger Meta Model API via Spark Networking module on mouth open
mouthOpenness.monitor().subscribe(async (event) => {
if (event.newValue > 0.6) {
const response = await Networking.fetch('https://api.meta.ai/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_SPARK_TOKEN'
},
body: JSON.stringify({
model: 'meta-muse-spark-v1',
messages: [{ role: 'user', content: 'Generate a short positive spark quote' }]
})
});
const data = await response.json();
Diagnostics.log(data.choices[0].message.content);
}
});
})();
Model Comparison Matrix
| Feature | Llama 3.3 70B | Meta Muse Spark | Muse Spark Contributor | Llama 3.1 8B |
|---|---|---|---|---|
| Reasoning & Coding | โ Superior | โ High | โ High (Customizable) | Moderate |
| Creative Copy & Ideation | โ High | โ Optimized | โ Optimized | Standard |
| Multimodal / Asset Support | Text Only | โ Native | โ Custom LoRA | Text Only |
| Function Calling | โ Supported | โ Supported | โ Community Tools | โ Basic |
| Avg Latency (TTFT) | ~220 ms | ~90 ms | ~75 ms (Self-Hostable) | ~45 ms |
๐ฑ Meta Muse Spark Contributor Model
The Meta Muse Spark Contributor Model is an open-weights community variant built specifically for developers who want to fine-tune custom LoRA adapters, train domain-specific AR visual styles, and host localized models on Ollama or HuggingFace.
Open Weights & Local Host
Deploy locally with Ollama or vLLM with zero API token costs and complete offline inference support.
LoRA & QLoRA Fine-Tuning
Train lightweight style adapters using Unsloth or HuggingFace PEFT to inject custom AR shader aesthetic prompts.
Spark Studio Asset Hub
Publish custom reactive patches, 3D face mesh shaders, and gesture models directly to the Meta Spark Creator Hub.
Grants & Compute Credits
Qualify for Meta AI developer GPU grants and priority API rate-limit tiers under Team 2103496870583053.
Contributor Toolkit Quickstart:
# 1. Clone the open contributor repository
git clone https://github.com/meta-ai/muse-spark-contributor-kit.git
cd muse-spark-contributor-kit
# 2. Authenticate with your Meta Developer credentials
meta-cli auth login --team-id 2103496870583053 --project-id 1058226340231296
# 3. Fine-tune a LoRA adapter & publish custom Spark AR module
meta-cli muse train --base meta-muse-spark-contributor --dataset ./ar-styles
meta-cli muse publish --adapter ./lora-muse-ar-style --tag v1.0.0
2103496870583053 and Project 1058226340231296 to obtain your production bearer tokens.