Hugging Face · Example Payload
Hugging Face Createcompletion Example
Hugging Face Createcompletion Example is an example object payload from Hugging Face, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
operationIdmethodpathsummaryrequestExamplesresponseExamples
Example Payload
{
"operationId": "createCompletion",
"method": "POST",
"path": "/v1/completions",
"summary": "Create Text Completion",
"requestExamples": [
{
"contentType": "application/json",
"name": "CreatecompletionRequestExample",
"example": {
"model": "example_value",
"prompt": "example_value",
"max_tokens": 10,
"temperature": 42.5,
"top_p": 42.5,
"stop": [
"example_value"
],
"stream": true,
"seed": 10
}
}
],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"name": "Createcompletion200Example",
"example": {
"id": "abc123",
"object": "example_value",
"created": 10,
"model": "example_value",
"choices": [
{
"text": "example_value",
"index": 10,
"finish_reason": "example_value"
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 10,
"total_tokens": 10
}
}
},
{
"status": "200",
"contentType": "text/event-stream",
"name": "Createcompletion200Example",
"example": {
"id": "abc123",
"object": "example_value",
"created": 10,
"model": "example_value",
"choices": [
{
"text": "example_value",
"index": 10,
"finish_reason": "example_value"
}
]
}
},
{
"status": "400",
"contentType": "application/json",
"name": "Createcompletion400Example",
"example": {
"error": {
"message": "example_value",
"type": "example_value",
"code": "example_value"
}
}
}
]
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/hugging-face-createcompletion-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.