Questions · Fundamentals

What is an AI API?

An AI API is the HTTP interface between your application and a hosted model. You send structured input, you get structured output, and someone else runs the model.

Short answer. An AI API is a hosted HTTP interface that lets your software send input to an AI model and receive a structured result. It has three parts: an endpoint URL, a credential, and a request/response contract. You do not host the model, and the provider bills and operates it.

The definition in one paragraph

An AI API is an application programming interface that exposes a trained model as a network service. Your code sends a request such as a chat message, an image or a document, and the service returns a prediction: text, an embedding vector, a transcription, a label or an image. The model weights stay with the provider. You pay for access, usually per token or per subscription, and you inherit the provider's limits and terms.

The term covers more than chat. A modern AI API usually exposes several endpoint families behind one credential, which is why the same key can serve a support chatbot, a search index and a document classifier.

The three parts of every call

Endpoint. A URL that names the operation, for example POST https://api.plugsky.com/v1/chat/completions. The path tells the server what kind of work to do.

Credential. An API key or token, sent in a header, that identifies the account and the permissions attached to it. Keys should be scoped per environment and per tenant, rotated on a schedule, and never shipped in client-side code.

Contract. The request body and response shape. For a chat call the body names a model and a list of messages; the response returns the generated message plus a usage block with prompt and completion token counts. That usage block is what most per-token billing is based on.

What a request and response look like

A minimal request names the model and the conversation. Optional fields control sampling (temperature, top-p), length (max tokens), stop sequences, tool definitions and whether the answer streams back token by token.

curl https://api.plugsky.com/v1/chat/completions \
  -H "Authorization: Bearer $PLUGSKY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"plugsky-pro","messages":[{"role":"user","content":"Summarise this contract clause"}]}'

The response returns a message object and a usage object. If you build billing, quotas or evaluations, log the usage object rather than estimating tokens afterwards; it is the provider's own count for that request.

The main categories of AI API

Buyers often say "AI API" when they mean text generation, but the category is wider. The table shows the endpoint families you are likely to meet and what each returns.

Common AI API endpoint families. Availability differs by provider; confirm each endpoint before you design around it.
Endpoint family Input Output Typical use
Chat completions Messages, tools, images Text, tool calls, JSON Assistants, extraction, drafting
Embeddings Text or documents Numeric vector Search, clustering, RAG
Vision Image plus prompt Text or labels Document parsing, inspection
Speech to text Audio Transcript Meetings, call notes
Text to speech Text Audio Voice interfaces, accessibility
Image generation Prompt or source image Image Marketing, design variants
Moderation Text or image Category scores Safety filters, policy checks

What an AI API is not

It is not a chatbot. A chatbot is a user interface; the API is the layer underneath it. You can build a chatbot on an API, but the API itself has no screen, memory or conversation design.

It is not a model. The model is the trained artefact; the API is the delivery mechanism. Two providers can serve the same open-weight model and return different results because of quantisation, system prompts, routing and default parameters.

It is not a guarantee of correctness. A model can produce fluent, confident and wrong output. Any workflow that affects money, health, legal rights or safety needs review, retrieval grounding and an escalation path.

What to check before you choose one

Compatibility. If the API follows the OpenAI request shape, existing SDKs usually work after a base URL and model name change. Ask which parameters are supported, not just which endpoints exist.

Context and limits. Context window, maximum output, requests per minute, concurrent requests and daily token caps decide what you can build. Published numbers should match the behaviour you measure under load.

Pricing model. Per-token billing scales with usage; a flat subscription gives a known bill. Model the crossover at your own volume rather than trusting a headline rate.

Data handling. Ask whether prompts are used for training, how long they are retained, where they are processed, who can access them and how deletion works. Get the answer in the contract, not only on a marketing page.

Deployment and exit. Managed, VPC, on-premises and air-gapped options change the risk profile. A standard request shape keeps migration cheap; proprietary SDK features make exit expensive.

How Plugsky implements it

Plugsky is an OpenAI-compatible AI API operated by Plugsky Inc. of Newark, Delaware. The endpoint is POST https://api.plugsky.com/v1/chat/completions, the catalogue lists 39 public model IDs, and the live inference regions are Virginia (us-east-1), Frankfurt (eu-central-1), the UAE (me-central-1) and Singapore (ap-southeast-1). Riyadh is Enterprise-only. The request shape follows OpenAI, so the Python, Node, Go and curl clients work after changing the base URL, key and model ID. Live capabilities include chat, streaming, JSON mode, function calling, embeddings, RAG, agents, image generation and editing, and AI Video Studio. Audio, moderation, files, batch, fine-tuning, assistants and the Responses API are listed as coming soon.

Self-serve plans are Free at $0, Hobby at $8, Starter at $20, Builder at $60 and Scale at $120 per month, with 20% off annual billing. Hobby includes 1,000 requests and 2M tokens per day; Starter includes 2,000 requests and 5M tokens per day. Builder and Scale have no monthly token cap and no per-token overage, with fair-use concurrency and rate limits still applying. Paid plans carry a 7-day money-back guarantee. Plugsky offers authentication, role-based access control, SAML SSO, audit export, spend controls and bring-your-own-key. Private deployment options include VPC, on-premises and air-gapped environments. Security controls are aligned with SOC 2 and ISO 27001 practices; Plugsky does not claim SOC 2, ISO 27001 or FedRAMP certification, and suitability is determined by your own review.

Related pages

Sources and dated checks

Checked 1 December 2026. Primary sources: Plugsky facts, the live pricing page, the API docs and the public model catalogue. Third-party provider terms and prices change; confirm them in the provider console and the signed contract before capacity planning.

Author: Plugsky Editorial Team. This page is product documentation and procurement guidance, not legal advice. Compliance suitability, residency scope and contract terms are determined by your own review.