Skip to main content

Official Python SDK for the Bitlance SEO/GEO Content Generation API

Project description

Bitlance AI Python SDK

The official Python SDK for the Bitlance SEO/GEO Content Generation API.

Installation

pip install bitlance-ai-sdk

Usage

from bitlance_ai import BitlanceAI

ai = BitlanceAI(api_key="YOUR_API_KEY")

def main():
    try:
        # 1. Generate Topics
        topics = ai.generate_topics(industry="Real Estate", mode="SEO")
        print("Topics:", topics)

        # 2. Generate SEO Article
        seo_article = ai.generate_seo({
            "topic": "How to Invest in Commercial Real Estate in 2026",
            "keywords": "commercial real estate, investment tips",
            "length": "Long (1500+ words)"
        })
        print("Title:", seo_article.get("title"))

        # 3. Generate GEO Article
        geo_article = ai.generate_geo({
            "topic": "Enterprise AI Adoption Maturity Model",
        })
        print("Schema:", geo_article.get("schema_markup"))

        # 4. Audit Content
        audit = ai.audit_content("Your content here...", target_keyword="AI Adoption", mode="GEO")
        print("Audit:", audit.get("audit_report"))

        # 5. Rewrite Content
        rewritten = ai.rewrite_content("Your content here...", instructions="Add more hard statistics", mode="GEO")
        print("Rewritten:", rewritten.get("rewritten_content"))

    except Exception as e:
        print("Error:", str(e))

if __name__ == "__main__":
    main()

Error Handling

The SDK automatically retries on network failures and 429 Too Many Requests errors using exponential backoff (up to 3 retries). Client errors like 401 Unauthorized or 402 Payment Required will immediately raise a BitlanceAIError.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitlance_ai_sdk-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitlance_ai_sdk-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file bitlance_ai_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: bitlance_ai_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for bitlance_ai_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 798791950d817d16ac945aa2b8da314720bb19c897f7280c75f9f415f1ec9a5d
MD5 c68fe528e5335097841fa1bfc1a3c188
BLAKE2b-256 8acfe83c2a651522a0685d9a0991fac12cd022a6db949951d49fc5c19bef87a7

See more details on using hashes here.

File details

Details for the file bitlance_ai_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bitlance_ai_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a89a42a9a9ae5acb996619d0971b4ba5d7b1688530132952f845e133e649597d
MD5 b0fe07c7b638e29d3819ac5f72467e4b
BLAKE2b-256 89a97bec9ea1b5924c6e6597b22bcbf718d85b260eef440e450c64bdb9cc6133

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page