-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
59 lines (47 loc) · 1.89 KB
/
.env.example
File metadata and controls
59 lines (47 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Meta AI API Cookie Configuration
# Copy this file to .env and fill in your Meta AI cookies
# =========================================
# Required Cookies (Only 3 needed!)
# =========================================
# Get these from your browser when logged into https://meta.ai:
# 1. Open https://meta.ai in your browser and login
# 2. Press F12 to open DevTools
# 3. Go to Application → Cookies → https://meta.ai
# 4. Copy these 3 values:
# Device/browser identifier - REQUIRED
META_AI_DATR=your_datr_cookie_value
# Meta AI session cookie - REQUIRED
META_AI_ABRA_SESS=your_abra_sess_cookie_value
# Ecto session token - REQUIRED (most important for generation)
# Format: <uuid>.v1%3A<base64-encoded-data>
# NOTE: This expires frequently, re-extract if API calls fail
META_AI_ECTO_1_SESS=your_ecto_1_sess_value
# =========================================
# Optional Configuration
# =========================================
# Challenge verification cookie (auto-handled by SDK, optional)
#META_AI_RD_CHALLENGE=auto_updated_by_sdk
# Refresh interval in seconds (default: 3600 = 1 hour)
META_AI_REFRESH_INTERVAL_SECONDS=3600
# =========================================
# Proxy Configuration (Optional)
# =========================================
# HTTP proxy URL (if needed)
# Example: http://proxy.example.com:8080
#META_AI_PROXY_HTTP=
# HTTPS proxy URL (if needed)
# Example: http://proxy.example.com:8080
#META_AI_PROXY_HTTPS=
# =========================================
# Quick Start
# =========================================
# 1. Copy values from browser DevTools as shown above
# 2. Paste them into the META_AI_* fields (no quotes needed)
# 3. Rename this file from .env.example to .env
# 4. Run your Python script:
#
# from metaai_api import MetaAI
# ai = MetaAI() # Automatically loads from .env
# result = ai.generate_image_new("a beautiful sunset")
#
# That's it! No tokens (lsd/fb_dtsg) needed.