Baby Name Generator by Parents

Generate unique baby names using mom & dad’s names! Smart baby name generator with meanings, initials & suggestions. Try now for free!

(async () => { const res = await fetch("https://openrouter.ai/api/v1/chat/completions", { method: "POST", headers: { "Authorization": "Bearer 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", "Content-Type": "application/json" }, body: JSON.stringify({ model: "deepseek/deepseek-r1:free", messages: [ { role: "system", content: "You are a JSON-only generator. Output exactly a JSON array, no extra text." }, { role: "user", content: "Generate 2 baby names for parents Omar & Ayesha, gender Any." } ] }) }); const { choices } = await res.json(); let text = choices[0].message.content.trim(); console.log("Raw content:\n", text); // strip code fences if present text = text .replace(/^```json\s*/, "") .replace(/```$/ , "") .trim(); console.log("Cleaned content:\n", text); try { const obj = JSON.parse(text); console.log("Parsed JSON:", obj); } catch (err) { console.error("JSON parse error:", err); } })();