8000 GitHub - azcharia/api at organization
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

azcharia/api

 
 

Repository files navigation

Shapes API

image

Shapes are general purpose social agents. You can build for an existing shape from our catalogue of millions or create your own. Shapes have rich personalities, love hanging out in groupchats, and short-term + long-term memory across platforms.

The Shapes API enables developers to connect Shapes across social platforms, games, and other applications. Shapes can meet you anywhere, from your favorite social app or a new project.

Open Source Contributions

Our API is designed with extensibility as a core principle. You can extend any Shape for tool calling, MCP, and more.

Star and contribute to this repository to receive free hosting for your integration. We will also be directing traffic from our user base to your integration.

What is the Shapes API?

Shapes API provides a programmatic way to integrate Shapes into any application or platform. It follows the OpenAI-compatible API standard, making it easy to implement with existing libraries and SDKs.

To learn more about implementing Shapes in your app, check out our examples repository.

Getting Started

You will need to generate an API Key. Every API Key is tied to a specific Shape. Get yours here

API Key Generation

Implementation Examples

🐍 Python

import openai

shapes_client = OpenAI(
    api_key="<your-API-key>",
    base_url="https://api.shapes.inc/v1/",
)

response = shapes_client.chat.completions.create(
    model="shapesinc/<shape-username>",
    messages=[
        {"role": "user", "content": "Hello"}
    ]
)

print(response)

🌐 JavaScript

const openai = require("openai");

const shapes_client = new OpenAI({
    apiKey: "<your-API-key>",
    baseURL: "https://api.shapes.inc/v1",
});

const response = await shapes_client.chat.completions.create({
    model: "shapesinc/<shape-username>",
    messages: [
        { role: "user", content: "Hello" }
    ]
});

console.log(response);

🔄 CURL

curl -X POST https://api.shapes.inc/v1/chat/completions \
     -H "Authorization: Bearer <your-API-key>" \
     -H "Content-Type: application/json" \
     -d '{"model": "shapesinc/<shape-username>", "messages": [{ "role": "user", "content": "Hello" }]}'

Quick Setup

Requirement Details
Base URL https://api.shapes.inc/v1/
Model Format shapesinc/<shape-username>
Authentication Bearer token in Authorization header
Environment Variables SHAPESINC_API_KEY and SHAPESINC_SHAPE_USERNAME

API Specifications

Feature Details
Endpoints /chat/completions
Rate Limits 5 API Keys per account (request increase here)
Headers X-User-Id for user identification, X-Channel-Id for conversation context
Response Format Standard OpenAI-compatible JSON response

Supported Commands

Shapes now support the following commands:

  • !reset - Reset the Shape's long-term memory
  • !sleep - Generate a long-term on demand
  • !dashboard - Access the Shape's dedicated dashboard for configuration
  • !info - Get information about the shape
  • !web - Search the web (now free for all users)
  • !help - Get help with commands
  • !imagine - Generate images
  • !wack - Reset the Shape's short-term memory

Advanced Features

Feature Details
Vision Support Send OpenAI API compatible image_url with user messages
Tool Calling Shapes now support tool calling and MCP functionality
Voice Features Free voice for all shapes (custom or pre-made voices via shapes.inc)
Voice Configuration Option to disable voice transcripts (set via shapes.inc)
Voice Formatting Improved formatting for voice URLs with new line separation

Important Notes

Current Limitations

Limitation Details
No System Messages Shape personality comes from configuration
No Message History API relies on Shape's built-in memory
No Streaming Only full responses are supported
No Parameter Control Temperature and other settings locked to shapes.inc settings configured for the Shape
Extensions Tool calling, Multi-agent Communication Protocol (MCP), vision support

Note: Shapes set on Premium Engines WILL use credits when accessed via API.

Available Integrations

  • Telegram
  • Revolt
  • Slack
  • Bluesky
  • IRC
  • Chess
  • Voice

Requested Integrations

We're looking for developer contributions to build:

  • Reddit
  • GitHub (to review PRs)
  • Threads
  • Roblox
  • Minecraft
  • Twitch
  • LinkedIn
  • Microsoft Teams
  • WeChat
  • Anything you can possibly imagine

If you'd like to build an integration:

  1. Fork our repository
  2. Build your integration following our guidelines
  3. Submit a PR with comprehensive documentation

© 2025 Shapes, Inc.

About

A toolkit enabling delightful AI interactions across platforms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0