Summarize a text
POST/v1/text/summarize
Summarize a text
Request
Header Parameters
Conversation-Id string
- application/json
Body
required
content stringrequired
Possible values: non-empty
language string
Responses
- 200
- 400
- 499
- 500
- 502
- 504
OK
- application/json
- Schema
- Example (from schema)
Schema
content string
ai_platform_usage
object
service string
namespace string
prompt_tokens int64
completion_tokens int64
total_tokens int64
ai_generated boolean
{
"content": "string",
"ai_platform_usage": {
"service": "string",
"namespace": "string",
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
},
"ai_generated": true
}
Invalid or empty input content
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "string"
}
Policy violation: the LLM has detected unauthorized content
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "string"
}
Backend LLM unreachable
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "string"
}
Timeout in the backend LLM response
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "string"
}
Loading...