explain:
OpenAI-O1-Mini: Research Preview (Short-Term Availability)
If this app doesn't respond, consider trying our GPT-4o app:
https://huggingface.co/spaces/yuntian-deng/ChatGPT4
Chatbot

Hi


Hello! How can I assist you today?

Type an input and press Enter
Run
Status code from OpenAI server

Parameters
▼
Use via API
·
Construido con Gradio

API documentation
yuntian-deng/o1mini

API Recorder

5 API endpoints


Choose a language to see the code snippets for interacting with the API.

🪄 Recorded API Calls [2]

Here is the code snippet to replay the most recently recorded API calls using the bash client.

copy
curl -X POST yuntian-deng/o1minicall/reset_textbox_1 -s -H "Content-Type: application/json" -d '{ 
	"data": [
]}' \
  | awk -F'"' '{ print $4}' \
  | read EVENT_ID; curl -N yuntian-deng/o1minicall/reset_textbox_1/$EVENT_ID

curl -X POST yuntian-deng/o1minicall/predict_1 -s -H "Content-Type: application/json" -d '{ 
	"data": [
    "Hi",
    1,
    1,
    0,
    []
]}' \
  | awk -F'"' '{ print $4}' \
  | read EVENT_ID; curl -N yuntian-deng/o1minicall/predict_1/$EVENT_ID

Note: Some API calls only affect the UI, so when using the clients, the desired result may be achieved with only a subset of the recorded calls.

API Documentation

api_name: /enable_inputs
copy
curl -X POST https://yuntian-deng-o1mini.hf.space/call/enable_inputs -s -H "Content-Type: application/json" -d '{
  "data": [
]}' \
  | awk -F'"' '{ print $4}'  \
  | read EVENT_ID; curl -N https://yuntian-deng-o1mini.hf.space/call/enable_inputs/$EVENT_ID
Accepts 0 parameters:
Returns 1 element
api_name: /reset_textbox
copy
curl -X POST https://yuntian-deng-o1mini.hf.space/call/reset_textbox -s -H "Content-Type: application/json" -d '{
  "data": [
]}' \
  | awk -F'"' '{ print $4}'  \
  | read EVENT_ID; curl -N https://yuntian-deng-o1mini.hf.space/call/reset_textbox/$EVENT_ID
Accepts 0 parameters:
Returns 1 element
string

The output value that appears in the "Type an input and press Enter" Textbox component.

api_name: /predict
copy
curl -X POST https://yuntian-deng-o1mini.hf.space/call/predict -s -H "Content-Type: application/json" -d '{
  "data": [
							"Hello!!",
							0,
							0,
							3,
							[["Hello!",None]]
]}' \
  | awk -F'"' '{ print $4}'  \
  | read EVENT_ID; curl -N https://yuntian-deng-o1mini.hf.space/call/predict/$EVENT_ID
Accepts 5 parameters:
[0] string Required

The input value that is provided in the "Type an input and press Enter" Textbox component.

[1] number Required

The input value that is provided in the "Top-p (nucleus sampling)" Slider component.

[2] number Required

The input value that is provided in the "Temperature" Slider component.

[3] number Required

The input value that is provided in the "parameter_16" Number component.

[4] any Required

The input value that is provided in the "parameter_4" Chatbot component.

Returns list of 4 elements
[0]

The output value that appears in the "value_4" Chatbot component.

[1] number

The output value that appears in the "value_16" Number component.

[2] string

The output value that appears in the "Status code from OpenAI server" Textbox component.

[3] string

The output value that appears in the "Type an input and press Enter" Textbox component.

api_name: /reset_textbox_1
copy
curl -X POST https://yuntian-deng-o1mini.hf.space/call/reset_textbox_1 -s -H "Content-Type: application/json" -d '{
  "data": [
]}' \
  | awk -F'"' '{ print $4}'  \
  | read EVENT_ID; curl -N https://yuntian-deng-o1mini.hf.space/call/reset_textbox_1/$EVENT_ID
Accepts 0 parameters:
Returns 1 element
string

The output value that appears in the "Type an input and press Enter" Textbox component.

api_name: /predict_1
copy
curl -X POST https://yuntian-deng-o1mini.hf.space/call/predict_1 -s -H "Content-Type: application/json" -d '{
  "data": [
							"Hello!!",
							0,
							0,
							3,
							[["Hello!",None]]
]}' \
  | awk -F'"' '{ print $4}'  \
  | read EVENT_ID; curl -N https://yuntian-deng-o1mini.hf.space/call/predict_1/$EVENT_ID
Accepts 5 parameters:
[0] string Required

The input value that is provided in the "Type an input and press Enter" Textbox component.

[1] number Required

The input value that is provided in the "Top-p (nucleus sampling)" Slider component.

[2] number Required

The input value that is provided in the "Temperature" Slider component.

[3] number Required

The input value that is provided in the "parameter_16" Number component.

[4] any Required

The input value that is provided in the "parameter_4" Chatbot component.

Returns list of 4 elements
[0]

The output value that appears in the "value_4" Chatbot component.

[1] number

The output value that appears in the "value_16" Number component.

[2] string

The output value that appears in the "Status code from OpenAI server" Textbox component.

[3] string

The output value that appears in the "Type an input and press Enter" Textbox component.