header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired
Examples
{"model":"gpt-4.1","input":"Tell me a three sentence bedtime story about a unicorn."}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location'https://ai.tikhub.io/v1/responses' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"model": "gpt-4.1",
"input": "Tell me a three sentence bedtime story about a unicorn."
}'
Responses
🟢200OK
application/json
Successful response
Bodyapplication/json
Example
{"id":"resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b","object":"response","created_at":1741476542,"status":"completed","completed_at":1741476543,"model":"gpt-4.1-2025-04-14","output":[{"type":"message","id":"msg_67ccd2bf17f0819081ff3bb2cf6508e60bb6a6b452d3795b","status":"completed","role":"assistant","content":[{"type":"output_text","text":"In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars.","annotations":[]}]}],"usage":{"input_tokens":36,"output_tokens":87,"total_tokens":123}}