โšก Meta Developer Suite ยท Team ID: 2103496870583053 ยท Project ID: 1058226340231296

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.

๐Ÿ“Œ Official Documentation Links & Dashboard Quick Reference:
โ€ข 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.

Multimodal ยท Creative & AR

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
๐ŸŽจ Creative & AR Asset Synthesis
Open Community ยท Fine-Tune

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
๐Ÿ”“ Open Weights & Custom LoRA
AR Engine ยท Meta Spark

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
๐Ÿ‘“ Spatial Compute & AR

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 Calculation

Select a Meta model variant and adjust token consumption to calculate estimated monthly API costs.

$4.32
Est. Monthly Cost

โšก Interactive Meta AI Playground Console

Live API Simulator

Test prompt parameters, system context, and temperature against Meta Model API format in real time.

// JSON API response output will appear here...

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
๐Ÿš€ Ready to Deploy? Configure your credentials in the Meta AI Developer Portal under Team 2103496870583053 and Project 1058226340231296 to obtain your production bearer tokens.