Newsroom
Guide/AI/OpenAI

OpenAI

GPT-4o & GPT-4o mini ยท Step-by-step API setup guide

What is OpenAI?

OpenAI makes GPT-4o and GPT-4o mini โ€” some of the most capable AI models available. NewsLyfe uses them to summarize articles, extract key information, and provide intelligent analysis. GPT-4o mini is recommended for most users: it's fast, affordable, and excellent at multilingual summarization.

๐Ÿ’ก
No free tierโ€” but very affordable. New accounts get $5 in free credits. GPT-4o mini costs roughly $0.002 per article summary, meaning $5 covers about 2,500 summaries.

Quick Start

01

Create an OpenAI account

Go to platform.openai.com and sign up. New accounts receive $5 in free credits.

02

Get an API key

Go to platform.openai.com/api-keys โ†’ Create new secret key. Copy it immediately โ€” it's only shown once.

03

Add payment method (after free credits)

Go to Settings โ†’ Billing and add a card. Set a usage limit so you're never surprised. $5โ€“$10/month covers heavy daily use.

04

Add to NewsLyfe

Open NewsLyfe โ†’ Settings โ†’ AI โ†’ Select OpenAI. Paste your API key and save.

Pricing

GPT-4o mini (Recommended)$0.15per 1M input tokens

Best value. Fast, smart, and great for multilingual news. ~2,500 summaries per $1.

GPT-4o$2.50per 1M input tokens

Best quality for complex analysis. ~150 summaries per $1.

Troubleshooting

401

Invalid API Key

The key is wrong or has been deleted. API keys are shown only once โ€” if you lost it, create a new one at platform.openai.com/api-keys.

429

Rate Limit / Quota Exceeded

Either you've hit the rate limit (slow down requests) or your account has run out of credits. Check your balance at platform.openai.com/usage.

500

OpenAI Server Error

OpenAI's servers are having issues. Check status.openai.com for ongoing incidents.

API Key Security

๐Ÿ”’
Copy it once, store it safely. OpenAI only shows your key once after creation. Store it in a password manager before adding it to NewsLyfe.
๐Ÿ’ณ
Set a hard spend limit. In Settings โ†’ Limits, set a monthly spending cap. This prevents any unexpected charges if something goes wrong.
๐Ÿ”‘
Use project-scoped keys. Create keys under a specific Project in the OpenAI dashboard to limit their scope and permissions.