Standard
RecommendedProduction with databases, your own domain and a team.
- Up to 4 vCPU
- Databases
- Custom domain
- Load balancer
- AI Gateway
- Workspaces
FromR$44.99/mo≈ $8.10
An OpenAI-compatible API that brings cubic, Square Cloud's AI model, into your chatbots, assistants and automations. If your code already uses an OpenAI SDK, change the base URL and the key.
From the Standard plan, at no extra cost within each plan's limits. Billed in Brazilian reais, with an invoice issued in Brazil: no international card and no dollar exposure.
Point any OpenAI SDK at Square Cloud's base URL, use your account's API key and set the model to cubic.
import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.squarecloud.app/v2/ai", apiKey: process.env.SQUARECLOUD_API_KEY,});const completion = await client.chat.completions.create({ model: "cubic", messages: [ { role: "system", content: "You are a helpful assistant." }, { role: "user", content: "Explain what Square Cloud is in one sentence." }, ],});console.log(completion.choices[0].message.content);curl https://api.squarecloud.app/v2/ai/chat/completions \ -H "Authorization: Bearer $SQUARECLOUD_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "cubic", "messages": [ { "role": "user", "content": "Explain what Square Cloud is in one sentence." } ] }'The gateway follows OpenAI's chat completions format, so moving an existing integration takes a new base URL and a new key.
Any OpenAI SDK works once its base URL points at api.squarecloud.app/v2/ai. Errors come back in the OpenAI format too.
Declare up to 32 tools in the OpenAI format. The model decides when to call one, and your code runs it and sends back the result.
When a question needs current information, the model searches the web on its own and returns only the final answer, citing the source URLs.
The gateway's token limits are separate from the dashboard assistant's: API traffic never uses up what Cubic has left in the dashboard, and vice versa.
Each plan's ceilings. Hobby and accounts without a plan have no access. Daily limits reset at 00:00 UTC and weekly ones on Monday at 00:00 UTC.
| Limit | Standard | Pro | Enterprise |
|---|---|---|---|
| Volume | |||
| Tokens per day | 2.5M | 5M | 10M - 20M |
| Tokens per week | 10M | 20M | 40M - 80M |
| Per request | |||
| Context (tokens) | 64k | 128k | 256k |
| Max output (tokens) | 6k | 8k | 12k |
| Pace | |||
| Concurrent requests | 4 | 8 | 16 |
| Interval between requests | 1s | None | None |
Models on every plan: cubic, for chat completions with tools and web search, and cubic-decision, for typed decisions (POST /v2/ai/decisions). Both share the same limits.
On Enterprise, the token limit grows with the plan size. Context and output apply per request.
Three behaviors to plan for when you wire the gateway into a product.
Text in, text out, by design. Images, audio or files return a 400. Cubic, in the dashboard, is a separate product and accepts images and voice.
Like OpenAI, the API does not keep conversations. Send the history in messages on every request, up to 500 messages.
With "stream": true the reply arrives in parts, as chat.completion.chunk, and the OpenAI SDKs work unchanged.
From your first deploy to 1 TB of RAM, without switching platforms. Each phase adds memory and features to the one before, and upgrades apply instantly.
The AI Gateway is available from the Standard plan.
Production with databases, your own domain and a team.
FromR$44.99/mo≈ $8.10
More memory, daily snapshots and visibility into what runs.
FromR$124.99/mo≈ $22.50
Large operations, with a private Discord channel.
FromR$299.90/mo≈ $53.98
| Standard | Pro | Enterprise | |
|---|---|---|---|
| Compute | |||
| RAM | 4 GB → 8 GB | 12 GB → 24 GB | 32 GB → 1 TB |
| vCPU | 4 | 6 → 12 | 16 |
| Platform | |||
| Real-time metrics | Included | Included | Included |
| Blob Storage | Included | Included | Included |
| One-click rollback | Included | Included | Included |
| Square Shield anti-DDoS | Included | Included | Included |
| Cubic AI agent | Included | Included | Included |
| Databases | Included | Included | Included |
| Custom domain | Included | Included | Included |
| Load balancerapps per domain | 2 | 5 | 10 |
| AI Gateway | Included | Included | Included |
| Daily application snapshots | Not included | Included | Included |
| Performance analytics | Not included | Included | Included |
| Cubic Pro and routines | Not included | Included | Included |
| Team and support | |||
| Workspacesmembers per workspace | 3 → 7 | 10 → 20 | 20 → 50 |
| Priority support | Not included | Included | Included |
| Private Discord channel | Not included | Not included | Included |
4.9 out of 5
482 reviews on Google and Trustpilot
Hosted in a partner datacenter with certifications
Learning Center articles that answer your questions before and after you deploy.
An OpenAI-compatible API for using cubic, Square Cloud's AI model, in your own products, such as chatbots, assistants and automations. You send requests to api.squarecloud.app/v2/ai with your account's API key.
Standard, Pro and Enterprise get access at no extra cost, within each plan's gateway token limits. Above them, you keep going with AI credits and, on Enterprise, pay-as-you-go. Hobby and accounts without a plan have no access.
cubic, the same model behind the dashboard assistant, answers chat completions, with tools and web search. For typed questions about a text (yes or no, a choice between options, a score on a scale), use cubic-decision at POST /v2/ai/decisions. Both come with every plan that has access and share the same limits.
No. The gateway has its own daily and weekly token limits, separate from the dashboard assistant's, so neither one uses up the other.
Yes, that is the main use case. It is a regular HTTPS API, so it works from anywhere else too.