L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

openai-chat-completion

openai-chat-completion

OpenAI Chat Completion. Run OpenAI chat models including GPT-4o, GPT-5, and o3-mini. Triggers: chat, gpt, openai, text generation, llm, completion

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: openai-chat-completion description: "OpenAI Chat Completion. Run OpenAI chat models including GPT-4o, GPT-5, and o3-mini. Triggers: chat, gpt, openai, text generation, llm, completion" allowed-tools: Bash(curl *), WebFetch

OpenAI Chat Completion

Run OpenAI chat completion models through each::labs. Supports multiple model variants including GPT-4o, GPT-5, and o3-mini with optional image input and system prompts.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "openai-chat-completion",
    "version": "0.0.1",
    "input": {
      "model": "gpt-4o",
      "user_prompt": "Explain quantum computing in simple terms",
      "system_prompt": "You are a helpful science teacher"
    }
  }'

Parameters

ParameterTypeDefaultDescription
image_urlstringOptional image URL for multimodal input.
max_tokensintegerMaximum number of tokens in the response.
modelstringgpt-4oModel to use. enum: gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, gpt-4o-mini, gpt-4o, gpt-5.1, gpt-5, gpt-5-mini, gpt-5-nano, o3-mini
system_promptstringSystem prompt to set the model's behavior.
user_promptstringThe user's message to the model.

Examples

Vision-enabled query:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "openai-chat-completion",
    "version": "0.0.1",
    "input": {
      "model": "gpt-4o",
      "user_prompt": "Describe what you see in this image and identify the main objects",
      "image_url": "https://example.com/photo.jpg",
      "max_tokens": 500
    }
  }'

Reasoning with o3-mini:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "openai-chat-completion",
    "version": "0.0.1",
    "input": {
      "model": "o3-mini",
      "user_prompt": "Solve this step by step: If a train travels at 60mph for 2.5 hours, then at 80mph for 1.5 hours, what is the total distance?",
      "system_prompt": "Show your work step by step"
    }
  }'

Related Models

Documentation

Skills enregistrées