Awesome-omni-skill prompt-engineering-openai-api-f7c24501

Log in [Sign up](https://platform.openai.com/signup)

install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ai-agents/prompt-engineering-openai-api-f7c24501" ~/.claude/skills/diegosouzapw-awesome-omni-skill-prompt-engineering-openai-api-f7c24501 && rm -rf "$T"
manifest: skills/ai-agents/prompt-engineering-openai-api-f7c24501/SKILL.md
source content

Prompt engineering | OpenAI API

描述

Log in Sign up

Prompt engineering

Enhance results with prompt engineering strategies.

Copy page

With the OpenAI API, you can use a large language model to generate text from a prompt, as you might using ChatGPT. Models can generate almost any kind of text response—like code, mathematical equations, structured JSON data, or human-like prose.

Here's a simple example using the [Responses ...

来源

Prompt

Log in [Sign up](https://platform.openai.com/signup)

# Prompt engineering

Enhance results with prompt engineering strategies.

Copy page

With the OpenAI API, you can use a [large language model](https://platform.openai.com/docs/models) to generate text from a prompt, as you might using [ChatGPT](https://chatgpt.com/). Models can generate almost any kind of text response—like code, mathematical equations, structured JSON data, or human-like prose.

Here's a simple example using the [Responses API](https://platform.openai.com/docs/api-reference/responses).

Generate text from a simple prompt

javascript

1 2 3 4 5 6 7 8 9 import OpenAI from "openai"; const client = new OpenAI();

const response = await client.responses.create({ model: "gpt-5.2", input: "Write a one-sentence bedtime story about a unicorn." });

console.log(response.output_text);

1 2 3 4 5 6 7 8 9 from openai import OpenAI client = OpenAI()

response = client.responses.create( model="gpt-5.2", ...


---

## 标签
- AI
- Text Prompt
- prompt
- 生成
- clawdbot

---

*Skill generated by Clawdbot*