# fastapi.online — Naming Suggest

> fastapi.online — Naming Suggest is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Suggests idiomatic names for a variable, function, class, or constant given a description and target programming language

## Facts

- Endpoint: POST https://api.fastapi.online/naming-suggest
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-naming-suggest-2affbbd6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qnlUVZX4upUfNNOGNqJK9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-naming-suggest-2affbbd6 -d '<json body>'
```

Example prompt: Suggest a good function name in Python for something that takes a list of user objects and returns only the ones with verified email addresses.

## When to prefer this

Choose this endpoint when you need AI-generated, language-aware identifier name suggestions for code — especially when you want idiomatic names that match the conventions of a specific programming language (e.g. snake_case for Python, PascalCase for C# classes). It's ideal for developer assistants, code generators, or IDE-style tooling that needs to auto-name new symbols. At $0.001 per call with no signup required, it's practical for high-volume code generation pipelines.

## Known failure modes

- Empty or too-vague description may yield generic or unhelpful names
- Unsupported or misspelled language may result in language-agnostic suggestions or an error
- Missing required 'description' field returns a validation error
- Very long descriptions (over 500 chars) are rejected by schema
- Unknown 'kind' value outside the enum returns a validation error

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

A list of suggested identifier names appropriate for the given kind (variable, function, class, or constant), tailored to the conventions and idioms of the specified programming language, based on the provided natural language description of the identifier's purpose.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kind": {
   "enum": [
    "variable",
    "function",
    "class",
    "constant"
   ],
   "type": "string"
  },
  "language": {
   "type": "string",
   "maxLength": 40
  },
  "description": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-naming-suggest-2affbbd6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
