Skip to content
Back to skills

Openai Api

ASecurity

Use the OpenAI API effectively in a NextJS project. Trigger when the user wants to integrate OpenAI, GPT, or ChatGPT functionality into a NextJS application, including chat completions, streaming responses, or any OpenAI SDK usage. Also trigger when existing project code imports from the "openai" package and the user wants to add or modify that integration.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
developmenttypescriptnextjsnodegitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill openai-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openai Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openai Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-openai-api-awesome-omni-skill/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-openai-api-awesome-omni-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openai-api
description: Use the OpenAI API effectively in a NextJS project. Trigger when the user wants to integrate OpenAI, GPT, or ChatGPT functionality into a NextJS application, including chat completions, streaming responses, or any OpenAI SDK usage. Also trigger when existing project code imports from the "openai" package and the user wants to add or modify that integration.
---

# OpenAI API in NextJS

## Required: Study Documentation First

**BEFORE writing any code that interfaces with the OpenAI API, ALWAYS fetch and study both of the following documents:**

1. **TypeScript SDK**: https://github.com/openai/openai-node — Fetch this to understand the SDK's installation, client initialization, and available methods.
2. **Responses API Streaming**: https://developers.openai.com/api/reference/resources/chat/subresources/completions/streaming-events — Fetch this to understand streaming event types and how to handle streamed responses.

Use `WebFetch` on both URLs and study the returned content before writing or modifying any OpenAI integration code. Do not rely on prior knowledge of the API — the documentation is the source of truth.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.